Skip to content

Commit

Permalink
Empty IKEv2 DPD messages should not contain extra NONE payloads
Browse files Browse the repository at this point in the history
from markus@
  • Loading branch information
tobhe committed Nov 24, 2023
1 parent 204e82c commit 54ca735
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iked/ikev2.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -4059,10 +4059,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;

Expand Down

0 comments on commit 54ca735

Please sign in to comment.