]> git.ipfire.org Git - thirdparty/hostap.git/commit
crypto: Fix unreachable code in tls_prf_sha1_md5()
authorIlan Peer <ilan.peer@intel.com>
Wed, 3 Apr 2019 12:16:14 +0000 (15:16 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 6 Apr 2019 14:00:07 +0000 (17:00 +0300)
commit277fa92b376726dbe4bdc765ed2e084d8050ee1e
tree36d487b7ff119a78f9b98c42be03491fcaf28584
parent78ed42d8a2a54ae90a193f170b40ee56fad0a53b
crypto: Fix unreachable code in tls_prf_sha1_md5()

While commit 1c156e783d35 ("Fixed tls_prf() to handle keys with
odd length") added support for keys with odd length, the function
never reached this code as the function would return earlier in
case the key length was odd. Fix this by removing the first check
for the key length.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/crypto/sha1-tlsprf.c