mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
purity change for name length checking code
This commit is contained in:
parent
2053e9a314
commit
0e98576f36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53294
@ -246,8 +246,8 @@ whois(name, sinp, flags)
|
||||
(p = strstr(buf, "No match for \""))) {
|
||||
p += sizeof("No match for \"") - 1;
|
||||
if ((len = strcspn(p, "\"")) &&
|
||||
name[len] == '\0' &&
|
||||
strncasecmp(name, p, len) == 0 &&
|
||||
name[len] == '\0' &&
|
||||
strchr(name, '.') == NULL)
|
||||
nomatch = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user