summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-08-23 20:07:19 +0000
committerarchie <archie@FreeBSD.org>2002-08-23 20:07:19 +0000
commit7e209156e9246f621a97df363d99ce0d574b138e (patch)
tree69c91b1898681a5596ca68b0a77885446431028b /sys/contrib
parent8616f7e7086fb0abe746f9317f5cdedf7f4598c2 (diff)
downloadFreeBSD-src-7e209156e9246f621a97df363d99ce0d574b138e.zip
FreeBSD-src-7e209156e9246f621a97df363d99ce0d574b138e.tar.gz
Don't use "NULL" when "0" is really meant.
But in this case, "-1" is really meant. Reviewed by: darrenr
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_frag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_frag.c b/sys/contrib/ipfilter/netinet/ip_frag.c
index 6ebbdce..a32f3c4 100644
--- a/sys/contrib/ipfilter/netinet/ip_frag.c
+++ b/sys/contrib/ipfilter/netinet/ip_frag.c
@@ -256,7 +256,7 @@ nat_t *nat;
off = fin->fin_off;
off <<= 3;
if ((off + fin->fin_dlen) > 0xffff || (fin->fin_dlen == 0))
- return NULL;
+ return -1;
WRITE_ENTER(&ipf_natfrag);
ipf = ipfr_new(ip, fin, pass, ipfr_nattab);
OpenPOWER on IntegriCloud