diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-07 10:01:32 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-07 10:01:32 +0000 |
commit | 319fc7e1e065dd3d0aa7aaac8b1f948cf07d0db8 (patch) | |
tree | 70bdeb3f8c0060fdb395d787cc8040a0187e964a /sys/netinet/raw_ip.c | |
parent | db6ac921c8302d9f472c387c19fedfcd83c1587b (diff) | |
download | FreeBSD-src-319fc7e1e065dd3d0aa7aaac8b1f948cf07d0db8.zip FreeBSD-src-319fc7e1e065dd3d0aa7aaac8b1f948cf07d0db8.tar.gz |
2 11th-hour fixes from Ugen (not Uben, sorry!) J.S.Antsilevich.
I think it's time for Ugen to get a freefall account, just so I can
direct mail at him directly and let him drop off patches for us here. Ugen?
Done!
Submitted by: ugen
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index fa5d20b..949e427 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)raw_ip.c 8.2 (Berkeley) 1/4/94 - * $Id: raw_ip.c,v 1.5 1994/10/02 17:48:42 phk Exp $ + * $Id: raw_ip.c,v 1.6 1994/10/28 15:09:49 jkh Exp $ */ #include <sys/param.h> @@ -218,8 +218,11 @@ rip_ctloutput(op, so, level, optname, m) case IP_FW_FLUSH: case IP_FW_POLICY: - if (op == PRCO_SETOPT) - error=ip_firewall_ctl(optname, *m); + if (op == PRCO_SETOPT) { + error=ip_fw_ctl(optname, *m); + if (*m) + (void)m_free(*m); + } else error=EINVAL; return(error); |