3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-20 04:19:25 +01:00

dpp: init unwrapped pointer to NULL

Fixes possible issues with auto-free on error paths
This commit is contained in:
James Prestwood 2021-12-22 15:00:17 -08:00 committed by Denis Kenzior
parent ce9188ee35
commit eeab42af03

View File

@ -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;