diff options
author | 2014-04-11 02:56:41 +0000 | |
---|---|---|
committer | 2014-04-11 02:56:41 +0000 | |
commit | 15551ccf7af2f6480f326ee73a8f4b82c6f9740a (patch) | |
tree | 9e82d8e65d42cbaa0538d139cdfcc97434f31155 | |
parent | Fix tree breakage. (diff) | |
download | wireguard-openbsd-15551ccf7af2f6480f326ee73a8f4b82c6f9740a.tar.xz wireguard-openbsd-15551ccf7af2f6480f326ee73a8f4b82c6f9740a.zip |
fix a use after free in an error path
ok henning@ mikeb@
-rw-r--r-- | sbin/pfctl/pfctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 51e747299bf..64c1e0aed40 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.323 2014/02/28 22:18:23 mikeb Exp $ */ +/* $OpenBSD: pfctl.c,v 1.324 2014/04/11 02:56:41 jsg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1563,6 +1563,7 @@ pfctl_rules(int dev, char *filename, int opts, int optimize, } free(path); + path = NULL; if (altqsupport && loadaltq && check_commit_altq(dev, opts) != 0) ERRX("errors in altq config"); |