From 660f321c3da5e851f65d95f75902ada6142c8d66 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Wed, 13 Jun 2018 18:58:29 +0200 Subject: [PATCH] eap-mschapv2: Fix password hash validation --- src/eap-mschapv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eap-mschapv2.c b/src/eap-mschapv2.c index 28afe7fd..ea64d46a 100644 --- a/src/eap-mschapv2.c +++ b/src/eap-mschapv2.c @@ -701,7 +701,7 @@ static int eap_mschapv2_check_settings(struct l_settings *settings, unsigned char *tmp; size_t len; - tmp = l_util_from_hexstring(password, &len); + tmp = l_util_from_hexstring(password_hash, &len); l_free(tmp); if (!tmp || len != 16) {