diff options
author | archie <archie@FreeBSD.org> | 2002-08-23 20:07:19 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2002-08-23 20:07:19 +0000 |
commit | 7e209156e9246f621a97df363d99ce0d574b138e (patch) | |
tree | 69c91b1898681a5596ca68b0a77885446431028b /sys/contrib | |
parent | 8616f7e7086fb0abe746f9317f5cdedf7f4598c2 (diff) | |
download | FreeBSD-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.c | 2 |
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); |