mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
dpp: init unwrapped pointer to NULL
Fixes possible issues with auto-free on error paths
This commit is contained in:
parent
ce9188ee35
commit
eeab42af03
@ -780,7 +780,7 @@ static void dpp_handle_config_result_frame(struct dpp_sm *dpp,
|
|||||||
const void *e_nonce = NULL;
|
const void *e_nonce = NULL;
|
||||||
const void *wrapped = NULL;
|
const void *wrapped = NULL;
|
||||||
size_t wrapped_len;
|
size_t wrapped_len;
|
||||||
_auto_(l_free) void *unwrapped;
|
_auto_(l_free) void *unwrapped = NULL;
|
||||||
|
|
||||||
if (dpp->state != DPP_STATE_CONFIGURING)
|
if (dpp->state != DPP_STATE_CONFIGURING)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user