pf: add missing unlock on error in DIOCCHANGERULE

Fixes:	ff80dd034a
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2022-05-11 00:00:17 +00:00
parent bf46c0a9ae
commit 826c58d665

View File

@ -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;