]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP2: Explicitly check EC_KEY before dereferencing it
authorDisha Das <dishad@codeaurora.org>
Tue, 27 Oct 2020 07:39:31 +0000 (13:09 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 27 Oct 2020 09:33:15 +0000 (11:33 +0200)
commit02289ab537e94d47f01156b672c697ce78cdbab0
tree1897e58976dc7ff1e3b184536ad7cb2fc9de0851
parentc575904761b374e3738120580617c4a83a73e9f7
DPP2: Explicitly check EC_KEY before dereferencing it

In theory, the EVP_PKEY_get0_EC_KEY() could fail, so verify that it
succeeds before using the pointer to get the group.

Fixes: 65e94351dc4a ("DPP2: Reconfig Authentication Request processing and Response generation")
Signed-off-by: Disha Das <dishad@codeaurora.org>
src/common/dpp_crypto.c