-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Empty IKEv2 DPD messages should not contain extra NONE payloads
from markus@
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -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; | ||
|
||
|