From 8af78bff20be0a613f6d5380f550f3ed2188578b Mon Sep 17 00:00:00 2001 From: tobhe Date: Fri, 24 Nov 2023 14:43:00 +0000 Subject: [PATCH] Empty IKEv2 DPD messages should not contain extra NONE payloads from markus@ --- sbin/iked/ikev2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 4b39b1f94d0..673327a8056 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.379 2023/11/10 08:03:02 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.380 2023/11/24 14:43:00 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -4034,10 +4034,10 @@ ikev2_send_ike_e(struct iked *env, struct iked_sa *sa, struct ibuf *buf, if ((e = ibuf_static()) == NULL) goto done; - if ((pld = ikev2_add_payload(e)) == NULL) - goto done; - if (buf) { + if ((pld = ikev2_add_payload(e)) == NULL) + goto done; + if (ibuf_add_buf(e, buf) != 0) goto done; -- 2.20.1