From 00ffb056e88b45de058f32ff43bcfccd3116b5ed Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 16 Nov 2023 11:15:26 -0800 Subject: [PATCH] dpp-util: store SSID as string, not raw buffer Nearly every use of the ssid member first has to memcpy it to a buffer and NULL terminate. Instead just store the ssid as a string when creating/parsing from JSON. --- src/dpp-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp-util.h b/src/dpp-util.h index 053caf8c..0724ee44 100644 --- a/src/dpp-util.h +++ b/src/dpp-util.h @@ -112,7 +112,7 @@ enum dpp_attribute_type { }; struct dpp_configuration { - uint8_t ssid[32]; + char ssid[33]; size_t ssid_len; uint32_t akm_suites; char *passphrase;