mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
pf: Handle errors returned by pf_killstates()
Happily this wasn't a real bug, because pf_killstates() never fails, but
we should check the return value anyway, in case it does ever start
returning errors.
Reported by: clang --analyze
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
8cceacc0f1
commit
fa96701c8a
1 changed files with 2 additions and 0 deletions
|
|
@ -4887,6 +4887,8 @@ pf_killstates_nv(struct pfioc_nv *nv)
|
|||
ERROUT(error);
|
||||
|
||||
error = pf_killstates(&kill, &killed);
|
||||
if (error)
|
||||
ERROUT(error);
|
||||
|
||||
free(nvlpacked, M_NVLIST);
|
||||
nvlpacked = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue