]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Typo
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Aug 2021 14:39:02 +0000 (09:39 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Aug 2021 14:39:46 +0000 (09:39 -0500)
src/modules/rlm_pap/rlm_pap.c

index 6c38c6cdf611afd9429205aba8816c970e928288..b1d1da760454fa4f6427cf88786d1296892e896b 100644 (file)
@@ -191,7 +191,7 @@ static unlang_action_t CC_HINT(nonnull) pap_auth_crypt(rlm_rcode_t *p_result,
        struct crypt_data crypt_data = { .initialized = 0 };
 
        crypt_out = crypt_r(password->vp_strvalue, known_good->vp_strvalue, &crypt_data);
-       if (crypt_out) cmp = strcmp(reference_crypt, crypt_out);
+       if (crypt_out) cmp = strcmp(known_good->vp_strvalue, crypt_out);
 #else
        /*
         *      Ensure we're thread-safe, as crypt() isn't.