Try harder to avoid (very unlikely) NULL pointer de-ref by tweaking
authorkrw <krw@openbsd.org>
Fri, 5 Jun 2015 21:41:43 +0000 (21:41 +0000)
committerkrw <krw@openbsd.org>
Fri, 5 Jun 2015 21:41:43 +0000 (21:41 +0000)
commit34b64e6f8a9d5f7c7e8f8c0b2d4467ae7e06af71
tree35a14928beddca3506ca6183818d17cca5e6aa3a
parent572dfba45fb09653600fb971edc946675434346a
Try harder to avoid (very unlikely) NULL pointer de-ref by tweaking
code to use sotopf() like tcp_usrreq() does. Also following
tcp_usrreq(), put more stuff under splsoftnet. And as a result
in-line code in udp_detach() and nuke udp_detach().

Most ideas from and ok mikeb@
sys/netinet/udp_usrreq.c