From: Jorge Pereira Date: Tue, 8 Jun 2021 13:15:02 +0000 (-0300) Subject: rlm_mschap: Fix wrong 'Domain-Name' length (#4105) X-Git-Tag: release_3_0_23~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b562ebe29c13a2bb2569668e8d81b8c83b4a1a15;p=thirdparty%2Ffreeradius-server.git rlm_mschap: Fix wrong 'Domain-Name' length (#4105) --- diff --git a/src/modules/rlm_mschap/rlm_mschap.c b/src/modules/rlm_mschap/rlm_mschap.c index 04818c0bc54..5b17676a9f6 100644 --- a/src/modules/rlm_mschap/rlm_mschap.c +++ b/src/modules/rlm_mschap/rlm_mschap.c @@ -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);