]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_mschap: Fix wrong 'Domain-Name' length (#4105)
authorJorge Pereira <jpereira@users.noreply.github.com>
Tue, 8 Jun 2021 13:15:02 +0000 (10:15 -0300)
committerGitHub <noreply@github.com>
Tue, 8 Jun 2021 13:15:02 +0000 (09:15 -0400)
src/modules/rlm_mschap/rlm_mschap.c

index 04818c0bc5474093b3b5a1141dd4d1b981aac25e..5b17676a9f62b23c85ff70f6dbb1c42033fc13d6 100644 (file)
@@ -327,7 +327,7 @@ static ssize_t mschap_xlat(void *instance, REQUEST *request,
         *
         *      This is the full domain name, not just the name after host/
         */
-       } else if (strncasecmp(fmt, "Domain-Name", 9) == 0) {
+       } else if (strncasecmp(fmt, "Domain-Name", 11) == 0) {
                char *p;
 
                user_name = fr_pair_find_by_num(request->packet->vps, PW_USER_NAME, 0, TAG_ANY);