diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-11 02:56:42 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-11 02:56:42 +0000 |
commit | 1057a78bf62fcd407e15d80dcfebfde5c1bbcd8a (patch) | |
tree | 7fd4f3251e2818e9c85e419ed3eb3ac345723950 /sbin/pfctl/pfctl.c | |
parent | 49862aaa2d031c629ec391930cfe7abb47355fbe (diff) |
fix a use after free in an error path
ok henning@ mikeb@
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-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"); |