summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2014-02-12 12:59:45 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2014-02-12 12:59:45 +0000
commitf6c3ff06903e8290c8848392a38db2f1ca7b323c (patch)
tree888567099e7c81631f348036e451046ebc5a3749 /sbin/iked
parentaca0651191768e9b52646cbfd5e0048498b935dd (diff)
make sure to set the msg_responded flag on the original message; ok mikeb@
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ikev2_pld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/iked/ikev2_pld.c b/sbin/iked/ikev2_pld.c
index 208cfa37f3f..9dc7b45e78f 100644
--- a/sbin/iked/ikev2_pld.c
+++ b/sbin/iked/ikev2_pld.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2_pld.c,v 1.35 2014/01/24 05:58:52 mikeb Exp $ */
+/* $OpenBSD: ikev2_pld.c,v 1.36 2014/02/12 12:59:44 markus Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -808,7 +808,7 @@ ikev2_pld_delete(struct iked *env, struct ikev2_payload *pld,
ret = ikev2_send_ike_e(env, sa, resp,
IKEV2_PAYLOAD_NONE,
IKEV2_EXCHANGE_INFORMATIONAL, 1);
- msg->msg_responded = 1;
+ msg->msg_parent->msg_responded = 1;
ibuf_release(resp);
sa_state(env, sa, IKEV2_STATE_CLOSED);
return (ret);
@@ -911,7 +911,7 @@ ikev2_pld_delete(struct iked *env, struct ikev2_payload *pld,
if (found) {
ret = ikev2_send_ike_e(env, sa, resp, IKEV2_PAYLOAD_DELETE,
IKEV2_EXCHANGE_INFORMATIONAL, 1);
- msg->msg_responded = 1;
+ msg->msg_parent->msg_responded = 1;
} else {
/* XXX should we send an INVALID_SPI notification? */
ret = 0;