DPP: Fix a memory leak on an error path
Need to free temporary allocations if dpp_build_conf_start() fails to allocate memory. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
ed62d40116
commit
622934128b
1 changed files with 1 additions and 1 deletions
|
@ -4149,7 +4149,7 @@ skip_groups:
|
||||||
tailroom += signed1_len + signed2_len + signed3_len;
|
tailroom += signed1_len + signed2_len + signed3_len;
|
||||||
buf = dpp_build_conf_start(auth, conf, tailroom);
|
buf = dpp_build_conf_start(auth, conf, tailroom);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return NULL;
|
goto fail;
|
||||||
|
|
||||||
wpabuf_put_str(buf, "\"cred\":{\"akm\":\"dpp\",\"signedConnector\":\"");
|
wpabuf_put_str(buf, "\"cred\":{\"akm\":\"dpp\",\"signedConnector\":\"");
|
||||||
wpabuf_put_str(buf, signed1);
|
wpabuf_put_str(buf, signed1);
|
||||||
|
|
Loading…
Reference in a new issue