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)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 6 Feb 2012 12:12:43 +0000 (07:12 -0500)
commit0e1521e834b1c99f6d396b0adfd81b7b2159bac5
tree18d814e712b92472aa50e8b1c240ba09e8456697
parentc7371e6abf0b86851ecfecdfb4f90127c323418d
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