diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 1999-12-31 22:07:45 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 1999-12-31 22:07:45 +0000 |
commit | 2c759765bea8838a124e7e1e5bccaca4546d17bb (patch) | |
tree | 901c947aef20dad9e86116f026b673312f5b1ee0 /sys | |
parent | 988b7b9579b4898697a129ad0f85a067af54bb3a (diff) |
be sure to cleanup "opts" pointer on multicast udp packet reception.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 1c5edcd4e55..f2fc8256899 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.33 1999/12/21 15:41:08 itojun Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.34 1999/12/31 22:07:44 itojun Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -461,9 +461,12 @@ udp_input(m, va_alist) #endif /* INET6 */ &srcsa.sa, n, opts) == 0) { m_freem(n); + if (opts) + m_freem(opts); udpstat.udps_fullsock++; } else sorwakeup(last); + opts = NULL; } } last = inp->inp_socket; |