mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-07-10 11:27:27 +02: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 *wrapped = NULL;
|
||||
size_t wrapped_len;
|
||||
_auto_(l_free) void *unwrapped;
|
||||
_auto_(l_free) void *unwrapped = NULL;
|
||||
|
||||
if (dpp->state != DPP_STATE_CONFIGURING)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user