From: Nick Porter Date: Tue, 11 Jul 2023 12:23:37 +0000 (+0100) Subject: Use correct code to test for "get username" reply X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcdb064bea0d8bf863e9e37d41f94b27a818316a;p=thirdparty%2Ffreeradius-server.git Use correct code to test for "get username" reply --- diff --git a/src/process/tacacs/base.c b/src/process/tacacs/base.c index 662c178380c..23293bf85d8 100644 --- a/src/process/tacacs/base.c +++ b/src/process/tacacs/base.c @@ -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;