mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
parent
0eed8b7330
commit
2253bc330f
64 changed files with 1218 additions and 1416 deletions
|
|
@ -84,9 +84,9 @@ static bool hostmatch(const char *hostname,
|
|||
DEBUGASSERT(hostlen);
|
||||
|
||||
/* normalize pattern and hostname by stripping off trailing dots */
|
||||
if(hostname[hostlen-1]=='.')
|
||||
if(hostname[hostlen - 1] == '.')
|
||||
hostlen--;
|
||||
if(pattern[patternlen-1]=='.')
|
||||
if(pattern[patternlen - 1] == '.')
|
||||
patternlen--;
|
||||
|
||||
if(strncmp(pattern, "*.", 2))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue