kernel - Fix incorrect assertion during udp auto-binding
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 31 Jan 2012 22:18:36 +0000 (14:18 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 31 Jan 2012 22:18:36 +0000 (14:18 -0800)
commit23ecc5880dd169ab9c408114e82a49d099f45a8d
tree5716c2f25052647b3f041892ff41ca21d5e20d0b
parent702c883ec92ded8a3fd9f214077f8b979c21f626
kernel - Fix incorrect assertion during udp auto-binding

* When sendto() is used and the UDP socket is not bound the binding
  operation is done by the netisr thread and causes an assertion due
  to not being a process.

* The assertion is incorrect, remove it.  This only occured when lport has
  not been assigned and the cred check is only needed when it has.

Reported-by: Pierre Abbat
sys/netinet/in_pcb.c