diff mbox series

[5/5] dpp: check wrapped data exists in authenticate response

Message ID 20240304164846.1783148-5-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/5] client: remove unneeded initialization | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood March 4, 2024, 4:48 p.m. UTC
---
 src/dpp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/dpp.c b/src/dpp.c
index 74b4c2bc..567fe8d2 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -2368,7 +2368,7 @@  static void authenticate_response(struct dpp_sm *dpp, const uint8_t *from,
 		}
 	}
 
-	if (status != DPP_STATUS_OK || !r_boot_hash || !r_proto ) {
+	if (status != DPP_STATUS_OK || !r_boot_hash || !r_proto || !wrapped) {
 		l_debug("Auth response bad status or missing attributes");
 		return;
 	}