]> git.ipfire.org Git - thirdparty/hostap.git/commit
crypto: Check if crypto_bignum_to_bin() is successful
authorMicha Hashkes <micha.hashkes@intel.com>
Mon, 5 Dec 2022 13:31:17 +0000 (15:31 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Dec 2022 10:11:13 +0000 (12:11 +0200)
commita7f6b85180a6e5e6efe635b3e12acc9233dbab3b
treec6cc5027559e32d0724f6c516eba029b62e9d0bb
parent2749a2c6bfb64141eba4c9112a2a5aebd6fdcfc4
crypto: Check if crypto_bignum_to_bin() is successful

Return value of crypto_bignum_to_bin() wasn't always checked, resulting
in potential access to uninitialized values. Fix it, as some analyzers
complain about it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Micha Hashkes <micha.hashkes@intel.com>
src/common/sae.c
src/crypto/crypto_openssl.c
src/eap_common/eap_pwd_common.c
src/eap_peer/eap_pwd.c
src/eap_server/eap_server_pwd.c