diff options
author | Christopher Zimmermann <chrisz@cvs.openbsd.org> | 2014-04-09 08:44:09 +0000 |
---|---|---|
committer | Christopher Zimmermann <chrisz@cvs.openbsd.org> | 2014-04-09 08:44:09 +0000 |
commit | 0cbbc36484a9b4fd769406fc29982160a85c8d33 (patch) | |
tree | 5c7d43c8fe99fc453e129fb7e3c371437b46e99e /sys/netinet6/udp6_output.c | |
parent | bbfb5240c4475f2b2e1de21371ee241923ebe57d (diff) |
Fix m_freem(NULL) in error case.
OK claudio@
Diffstat (limited to 'sys/netinet6/udp6_output.c')
-rw-r--r-- | sys/netinet6/udp6_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/udp6_output.c b/sys/netinet6/udp6_output.c index 12fac31a331..2ae95cafa68 100644 --- a/sys/netinet6/udp6_output.c +++ b/sys/netinet6/udp6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp6_output.c,v 1.23 2013/10/23 19:57:50 deraadt Exp $ */ +/* $OpenBSD: udp6_output.c,v 1.24 2014/04/09 08:44:08 chrisz Exp $ */ /* $KAME: udp6_output.c,v 1.21 2001/02/07 11:51:54 itojun Exp $ */ /* @@ -198,7 +198,7 @@ udp6_output(struct inpcb *in6p, struct mbuf *m, struct mbuf *addr6, M_PREPEND(m, hlen + sizeof(struct udphdr), M_DONTWAIT); if (m == 0) { error = ENOBUFS; - goto release; + goto releaseopt; } /* |