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
2887552f52
commit
ad919e2f8f
@ -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…
x
Reference in New Issue
Block a user