diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-06-02 02:03:52 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-06-02 02:03:52 +0000 |
commit | ffc84c84fced44fb613c274842124d8fc4b45f68 (patch) | |
tree | b76f8ee10fb1247fb4df96c17a350902ee3126ab /bin/systrace/policy.c | |
parent | 1c01c2e457ca772fa53b51820b2e0e0429e295ac (diff) |
prevents systrace from referencing freed memory; provos
Diffstat (limited to 'bin/systrace/policy.c')
-rw-r--r-- | bin/systrace/policy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/policy.c b/bin/systrace/policy.c index 9ea43c4aaae..a8be78a2f83 100644 --- a/bin/systrace/policy.c +++ b/bin/systrace/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.25 2003/04/17 07:39:24 pvalchev Exp $ */ +/* $OpenBSD: policy.c,v 1.26 2003/06/02 02:03:51 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -197,7 +197,7 @@ systrace_newpolicynr(int fd, struct policy *tmp) return (-1); if ((tmp->policynr = intercept_newpolicy(fd)) == -1) { - free(tmp); + /* XXX - maybe free policy structure here */ return (-1); } |