pf: add missing unlock on error in DIOCCHANGERULE
Fixes: ff80dd034a
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
bf46c0a9ae
commit
826c58d665
@ -3618,6 +3618,7 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct thread *td
|
||||
#undef ERROUT
|
||||
DIOCCHANGERULE_error:
|
||||
PF_RULES_WUNLOCK();
|
||||
PF_CONFIG_UNLOCK();
|
||||
pf_krule_free(newrule);
|
||||
pf_kkif_free(kif);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user