]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use correct code to test for "get username" reply
authorNick Porter <nick@portercomputing.co.uk>
Tue, 11 Jul 2023 12:23:37 +0000 (13:23 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 11 Jul 2023 15:01:15 +0000 (16:01 +0100)
src/process/tacacs/base.c

index 662c178380c5a061ae404facac28bad5bd29870f..23293bf85d807af9c1b0208a13ca6d575fa7a205 100644 (file)
@@ -577,7 +577,7 @@ RESUME(auth_start)
                /*
                 *      Last reply was "get username", we now get the password.
                 */
-               if (session->reply == FR_TAC_PLUS_AUTHEN_STATUS_GETUSER) {
+               if (session->reply == FR_TACACS_CODE_AUTH_GETUSER) {
                        RDEBUG("No User-Password, replying with Authentication-GetPass");
                        request->reply->code = FR_TACACS_CODE_AUTH_GETPASS;
                        goto send_reply;