]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Fix debug prints in wps_derive_psk() error case
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 16 May 2016 16:35:03 +0000 (19:35 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 May 2016 16:35:03 +0000 (19:35 +0300)
commitaae125e2cff0fe4da509ab0b0232ba890cf5bb1d
tree6e83937d5e2ce01dfcece5116005033915e0ea2a
parent7d1007a6740a49b6e6bb0e91808ebb8fc9d5789d
WPS: Fix debug prints in wps_derive_psk() error case

Check for hmac_sha256() failures and exit from wps_derive_psk() without
printing out the derived keys if anything fails. This removes a valgrind
warning on uninitialized value when running the ap_wps_m3_oom test case.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/wps/wps_common.c
src/wps/wps_enrollee.c
src/wps/wps_i.h
src/wps/wps_registrar.c