Whoops... that's a typo
authoraland <aland>
Mon, 2 Feb 2004 19:15:51 +0000 (19:15 +0000)
committeraland <aland>
Mon, 2 Feb 2004 19:15:51 +0000 (19:15 +0000)
src/modules/rlm_mschap/rlm_mschap.c

index c46eece..c63c95e 100644 (file)
@@ -835,7 +835,7 @@ static int mschap_authenticate(void * instance, REQUEST *request)
                 *      We also require a User-Name
                 */
                username = pairfind(request->packet->vps, PW_USER_NAME);
-               if (username) {
+               if (!username) {
                        radlog(L_AUTH, "rlm_mschap: We require a User-Name for MS-CHAPv2");
                        return RLM_MODULE_INVALID;
                }