Skip to content

Commit

Permalink
pf: add missing unlock on error in DIOCCHANGERULE
Browse files Browse the repository at this point in the history
Fixes:	ff80dd0
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 826c58d)
  • Loading branch information
mjguzik authored and Mateusz Guzik committed May 24, 2022
1 parent 635f65a commit eec75e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/netpfil/pf/pf_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3593,6 +3593,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;
Expand Down

0 comments on commit eec75e2

Please sign in to comment.