diff options
author | 1996-07-05 20:42:18 +0000 | |
---|---|---|
committer | 1996-07-05 20:42:18 +0000 | |
commit | f1b274369a507760298b9405e8fc6e2a47f6510a (patch) | |
tree | 58992438d73f073215506b8d71f5435d0c902212 /sys/netinet/udp_usrreq.c | |
parent | overly pedantic indentation fix from theo who had a few beer (diff) | |
download | wireguard-openbsd-f1b274369a507760298b9405e8fc6e2a47f6510a.tar.xz wireguard-openbsd-f1b274369a507760298b9405e8fc6e2a47f6510a.zip |
release temporary binding if M_PREPEND fails; netbsd pr#2605; tegge@idt.unit.no; improved by me
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index dde51578f84..f78e4be2d7f 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.6 1996/05/15 09:03:12 mickey Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.7 1996/07/05 20:42:18 deraadt Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -457,7 +457,7 @@ udp_output(m, va_alist) M_PREPEND(m, sizeof(struct udpiphdr), M_DONTWAIT); if (m == 0) { error = ENOBUFS; - goto release; + goto bail; } /* @@ -490,6 +490,7 @@ udp_output(m, va_alist) inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST), inp->inp_moptions); +bail: if (addr) { in_pcbdisconnect(inp); inp->inp_laddr = laddr; |