From 9deba765a376407c215916f647eb614d4094e4da Mon Sep 17 00:00:00 2001 From: markus Date: Tue, 6 May 2014 08:17:58 +0000 Subject: [PATCH] send the delete with the locally allocated SPI in ikev2_init_create_child_sa() --- sbin/iked/ikev2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index fd8285ab37a..0d1774eeadd 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.104 2014/05/06 07:24:37 markus Exp $ */ +/* $OpenBSD: ikev2.c,v 1.105 2014/05/06 08:17:58 markus Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -2611,7 +2611,7 @@ ikev2_init_create_child_sa(struct iked *env, struct iked_message *msg) del->del_spisize = sizeof(spi32); del->del_nspi = htobe16(1); - spi32 = htobe32(csa->csa_peerspi); + spi32 = htobe32(csa->csa_spi.spi); if (ibuf_add(buf, &spi32, sizeof(spi32))) goto done; -- 2.20.1