]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Fix static analyzer warnings in key generation and JWK construction
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 11 Oct 2017 15:19:03 +0000 (18:19 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 11 Oct 2017 15:19:03 +0000 (18:19 +0300)
commit58efbcbcd457eddb3e5f6704e6f19d7327d09915
treea7ea2171afbe62bf73b59eb078d09f37f812b043
parentf516090228a9f9ea5ea02ec2348c2c3fa268f082
DPP: Fix static analyzer warnings in key generation and JWK construction

Memory allocation failures could have resulted in error paths that
dereference a NULL pointer or double-freeing memory. Fix this by
explicitly clearing the freed pointer and checking allocation results.

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