mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
Add a strcasecmp() call I forgot in my hurry to commit the previous fix.
Without this call, the hostname check would in some cases yield false positives. Pointed out by: ru
This commit is contained in:
parent
ee52a08baa
commit
f28f539f3c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83402
@ -1553,7 +1553,8 @@ cfline(line, f, prog, host)
|
||||
if (f->f_host[hl-1] == '.')
|
||||
f->f_host[--hl] = '\0';
|
||||
dl = strlen(LocalDomain) + 1;
|
||||
if (hl > dl && f->f_host[hl-dl] == '.')
|
||||
if (hl > dl && f->f_host[hl-dl] == '.' &&
|
||||
strcasecmp(f->f_host + hl - dl + 1, LocalDomain) == 0)
|
||||
f->f_host[hl-dl] = '\0';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user