diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-03-22 12:43:40 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-03-22 12:43:40 +0000 |
commit | a9996337f582848e5a9ffa991e80d018ee91a340 (patch) | |
tree | 763876662bd1b51043fcf887971edd8c6188a93d | |
parent | 1abe4c080e1f4e2ad7219f473490629d96a39834 (diff) |
Do not leak keynote session in error path.
ok cloder@
-rw-r--r-- | sbin/isakmpd/ike_quick_mode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/isakmpd/ike_quick_mode.c b/sbin/isakmpd/ike_quick_mode.c index a4dded89ae5..3d719a6d69c 100644 --- a/sbin/isakmpd/ike_quick_mode.c +++ b/sbin/isakmpd/ike_quick_mode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike_quick_mode.c,v 1.89 2005/03/05 12:32:58 ho Exp $ */ +/* $OpenBSD: ike_quick_mode.c,v 1.90 2005/03/22 12:43:39 hshoexer Exp $ */ /* $EOM: ike_quick_mode.c,v 1.139 2001/01/26 10:43:17 niklas Exp $ */ /* @@ -141,6 +141,8 @@ check_policy(struct exchange *exchange, struct sa *sa, struct sa *isakmp_sa) log_error("check_policy: calloc (%d, %lu) failed", policy_asserts_num, (unsigned long)sizeof *keynote_ids); + kn_close(isakmp_sa->policy_id); + isakmp_sa->policy_id = -1; return 0; } } |