Coverity CID 3013: Don't check for NULL after deref! (from Arnaud Lacombe)
This commit is contained in:
parent
899418fb0f
commit
1bb7c537ad
|
@ -2031,6 +2031,9 @@ void *ptr;
|
|||
frentry_t *fr;
|
||||
ipfobj_t obj;
|
||||
|
||||
if (ptr == NULL)
|
||||
return;
|
||||
|
||||
fr = ptr;
|
||||
add = 0;
|
||||
del = 0;
|
||||
|
@ -2060,10 +2063,10 @@ void *ptr;
|
|||
fr->fr_flags |= FR_OUTQUE;
|
||||
if (fr->fr_hits)
|
||||
fr->fr_hits--;
|
||||
if (fr && (opts & OPT_VERBOSE))
|
||||
if ((opts & OPT_VERBOSE) != 0)
|
||||
printfr(fr, ioctlfunc);
|
||||
|
||||
if (opts & OPT_DEBUG) {
|
||||
if ((opts & OPT_DEBUG) != 0) {
|
||||
binprint(fr, sizeof(*fr));
|
||||
if (fr->fr_data != NULL)
|
||||
binprint(fr->fr_data, fr->fr_dsize);
|
||||
|
|
Loading…
Reference in New Issue