]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix memory leak on dpp_auth_build_conf() error paths
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 29 Nov 2017 19:20:45 +0000 (21:20 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 29 Nov 2017 19:21:34 +0000 (21:21 +0200)
The wpabuf for the message needs to be freed on the error paths.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/dpp.c

index c70f73b0c1ee37e4a0ebe2cd85749bd1f230c810..6927be08a1f785f42af35c0e05d9116af96b66e2 100644 (file)
@@ -3248,6 +3248,7 @@ skip_wrapped_data:
        return msg;
 
 fail:
+       wpabuf_free(msg);
        return NULL;
 }