diff options
author | peter <peter@FreeBSD.org> | 2003-12-23 02:36:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-12-23 02:36:43 +0000 |
commit | 7cc77e03ae647ad532a0a4b708811e38ed15c9e4 (patch) | |
tree | d22ef24bdd562f18d9dfc77f257b3dd71335c80f /sys/netinet/ip_fastfwd.c | |
parent | 409dd19ac040f6465a4e73882c919f0dc679c18e (diff) | |
download | FreeBSD-src-7cc77e03ae647ad532a0a4b708811e38ed15c9e4.zip FreeBSD-src-7cc77e03ae647ad532a0a4b708811e38ed15c9e4.tar.gz |
Catch a few places where NULL (pointer) was used where 0 (integer) was
expected.
Diffstat (limited to 'sys/netinet/ip_fastfwd.c')
-rw-r--r-- | sys/netinet/ip_fastfwd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index 667a04c..4041712 100644 --- a/sys/netinet/ip_fastfwd.c +++ b/sys/netinet/ip_fastfwd.c @@ -463,7 +463,7 @@ passin: if (!ipstealth) { #endif if (ip->ip_ttl <= IPTTLDEC) { - icmp_error(m, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, NULL, NULL); + icmp_error(m, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, 0, NULL); return 1; } @@ -503,7 +503,7 @@ passin: } else { ipstat.ips_noroute++; ipstat.ips_cantforward++; - icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, NULL, NULL); + icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, 0, NULL); if (ro.ro_rt) RTFREE(ro.ro_rt); return 1; @@ -707,8 +707,7 @@ droptoours: /* Used for DIVERT */ } else { ipstat.ips_noroute++; ipstat.ips_cantforward++; - icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, - NULL, NULL); + icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, 0, NULL); if (ro.ro_rt) RTFREE(ro.ro_rt); return 1; @@ -750,7 +749,7 @@ droptoours: /* Used for DIVERT */ */ if (ip->ip_off & IP_DF) { icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_NEEDFRAG, - NULL, ifp); + 0, ifp); ipstat.ips_cantfrag++; RTFREE(ro.ro_rt); return 1; |