udp: Don't propagate connect error, as long as the inpcb has local port.
commit219503cf61ebf0aa6c01e49f6b073f0a40e0f1ec
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 22 Nov 2016 02:57:13 +0000 (22 10:57 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 22 Nov 2016 03:01:42 +0000 (22 11:01 +0800)
tree3a5632a97a9a0634b4b6b373c4916566cc9301fc
parent28da90031a9ee33841f0f312dbdba0b4d239b1a9
udp: Don't propagate connect error, as long as the inpcb has local port.

This fixes the UDP socket disconnect->[read/write] support; before this
fix, the immediate read/write after disconnect will get EAFNOTSUPPORT.
sys/netinet/udp_usrreq.c