wininet: Fix proxy bypass with wildcard if domain length matches with server.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2017-08-30 09:44:16 -07:00 committed by Alexandre Julliard
parent 26c59d845e
commit 1b25de7d57
1 changed files with 1 additions and 1 deletions

View File

@ -1732,7 +1732,7 @@ static BOOL HTTP_DomainMatches(LPCWSTR server, substr_t domain)
return FALSE; return FALSE;
len = strlenW(dot + 1); len = strlenW(dot + 1);
if(len <= domain.len - 2) if(len < domain.len - 2)
return FALSE; return FALSE;
/* The server's domain is longer than the wildcard, so it /* The server's domain is longer than the wildcard, so it