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:
parent
b7df450647
commit
7d151849d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user