]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return correct rcode
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 30 Sep 2019 21:02:02 +0000 (16:02 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 30 Sep 2019 21:02:15 +0000 (16:02 -0500)
src/modules/rlm_mschap/rlm_mschap.c

index 1b5c2e398dade1ef9a47b164cb23e972e5728b1d..0cef811f2f2e66eb08a226b3f634496b0df22461 100644 (file)
@@ -1793,7 +1793,7 @@ static rlm_rcode_t CC_HINT(nonnull(1,2,3,4,7,8)) mschap_process_v2_response(int
                 *      We also require a User-Name
                 */
                user_name = mschap_identity_find(request);
-               if (!user_name) return -1;
+               if (!user_name) return RLM_MODULE_FAIL;
 
                /*
                 *      Check for MS-CHAP-User-Name and if found, use it