Don't use "NULL" when "0" is really meant.

But in this case, "-1" is really meant.

Reviewed by:	darrenr
This commit is contained in:
Archie Cobbs 2002-08-23 20:07:19 +00:00
parent b7df450647
commit 7d151849d0

View File

@ -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);