diff options
author | ru <ru@FreeBSD.org> | 2001-12-01 13:48:16 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-12-01 13:48:16 +0000 |
commit | 5fcff41f8a2071b3a0e95fe3c7b0290c907407b0 (patch) | |
tree | 3d794089377ef4bb74a2f60b5e1862977fee39d2 /sys/netinet/ip_mroute.c | |
parent | b3079d8ae1e568c43dbc59b7822d96301530c0cd (diff) | |
download | FreeBSD-src-5fcff41f8a2071b3a0e95fe3c7b0290c907407b0.zip FreeBSD-src-5fcff41f8a2071b3a0e95fe3c7b0290c907407b0.tar.gz |
Allow for ip_output() to be called with a NULL route pointer.
This fixes a panic I introduced yesterday in ip_icmp.c,v 1.64.
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 254200e..956c466 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1867,7 +1867,6 @@ tbf_send_packet(vifp, m) { struct ip_moptions imo; int error; - static struct route ro; int s = splnet(); if (vifp->v_flags & VIFF_TUNNEL) { @@ -1886,7 +1885,7 @@ tbf_send_packet(vifp, m) * should get rejected because they appear to come from * the loopback interface, thus preventing looping. */ - error = ip_output(m, (struct mbuf *)0, &ro, + error = ip_output(m, (struct mbuf *)0, NULL, IP_FORWARDING, &imo); if (mrtdebug & DEBUG_XMIT) |