diff options
author | 2005-03-22 12:43:39 +0000 | |
---|---|---|
committer | 2005-03-22 12:43:39 +0000 | |
commit | 8ebcbc5e66a324a7b070fbde6cfa93407c632523 (patch) | |
tree | eef9141ebc31c3183a35cbc0cb5f1d4a5d79385b | |
parent | don't step on ospfd routes, claudio yayayaya (diff) | |
download | wireguard-openbsd-8ebcbc5e66a324a7b070fbde6cfa93407c632523.tar.xz wireguard-openbsd-8ebcbc5e66a324a7b070fbde6cfa93407c632523.zip |
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; } } |