summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-09-26 16:20:37 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-09-26 16:20:37 +0000
commit668e4672dac1efd59a4b1d15584cda7b9a276bb4 (patch)
tree41298c0cc8f0a20ca0c10906fe79a2a89017ed14
parentf10fbfcb88857cf009f7acec1f57cf6536f69489 (diff)
Cleanup msg_eap in ikev2_msg_cleanup().
-rw-r--r--sbin/iked/ikev2_msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/iked/ikev2_msg.c b/sbin/iked/ikev2_msg.c
index ed7f3de50da..aa957e4f431 100644
--- a/sbin/iked/ikev2_msg.c
+++ b/sbin/iked/ikev2_msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2_msg.c,v 1.71 2020/08/15 11:31:17 tobhe Exp $ */
+/* $OpenBSD: ikev2_msg.c,v 1.72 2020/09/26 16:20:36 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -195,6 +195,7 @@ ikev2_msg_cleanup(struct iked *env, struct iked_message *msg)
ibuf_release(msg->msg_cert.id_buf);
ibuf_release(msg->msg_cookie);
ibuf_release(msg->msg_cookie2);
+ free(msg->msg_eap.eam_user);
msg->msg_nonce = NULL;
msg->msg_ke = NULL;
@@ -203,6 +204,7 @@ ikev2_msg_cleanup(struct iked *env, struct iked_message *msg)
msg->msg_cert.id_buf = NULL;
msg->msg_cookie = NULL;
msg->msg_cookie2 = NULL;
+ msg->msg_eap.eam_user = NULL;
config_free_proposals(&msg->msg_proposals, 0);
while ((cr = SIMPLEQ_FIRST(&msg->msg_certreqs))) {