From eeab42af0339989c60cda325059fa412d1411a2a Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 22 Dec 2021 15:00:17 -0800 Subject: [PATCH] dpp: init unwrapped pointer to NULL Fixes possible issues with auto-free on error paths --- src/dpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp.c b/src/dpp.c index 941c3f07..a4a21b3d 100644 --- a/src/dpp.c +++ b/src/dpp.c @@ -780,7 +780,7 @@ static void dpp_handle_config_result_frame(struct dpp_sm *dpp, const void *e_nonce = NULL; const void *wrapped = NULL; size_t wrapped_len; - _auto_(l_free) void *unwrapped; + _auto_(l_free) void *unwrapped = NULL; if (dpp->state != DPP_STATE_CONFIGURING) return;