diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2019-06-08 22:28:28 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2019-06-08 22:28:28 +0000 |
| commit | a0b4b41e7ade493cb66c0e5ae78a4515e4a58764 (patch) | |
| tree | 65360b0a464bc8cd68d96f4454c494c105e3106d /sys | |
| parent | 43fb7fc0da618bd5c56c71c863be03bae31e1e36 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/contrib/ipfilter/netinet/fil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c index 6fd4e7ba6320..5978773492b0 100644 --- a/sys/contrib/ipfilter/netinet/fil.c +++ b/sys/contrib/ipfilter/netinet/fil.c @@ -3913,7 +3913,7 @@ ipf_fixskip(listp, rp, addremove) for (fp = *listp; (fp != NULL) && (fp != rp); fp = fp->fr_next) rules++; - if (!fp) + if (fp == NULL) return; for (rn = 0, fp = *listp; fp && (fp != rp); fp = fp->fr_next, rn++) @@ -5006,7 +5006,7 @@ frrequest(softc, unit, req, data, set, makecopy) return error; } - if (!f) { + if (f == NULL) { /* * At the end of this, ftail must point to the place where the * new rule is to be saved/inserted/added. @@ -5052,7 +5052,7 @@ frrequest(softc, unit, req, data, set, makecopy) * Request to remove a rule. */ if (addrem == 1) { - if (!f) { + if (f == NULL) { IPFERROR(29); error = ESRCH; } else { |
