aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2024-03-04 08:48:46 -0800
committerDenis Kenzior <denkenz@gmail.com>2024-03-04 13:48:08 -0600
commit405b897687cd5e324f34bdf1bba9d370940bbd16 (patch)
tree926a11ec64f5a693b39c0acdca71966c613ce678
parent62e2a3535d39b6ce6a6c0fa6297831c65672b794 (diff)
dpp: check wrapped data exists in authenticate response
-rw-r--r--src/dpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dpp.c b/src/dpp.c
index 74b4c2bce..567fe8d28 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;
}