Daniel Lehman : wininet: Fix proxy bypass with wildcard if domain length matches with server.
Module: wine Branch: master Commit: 1b25de7d57e81e5307a18c8889d4727c857dadca URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b25de7d57e81e5307a18c8889... Author: Daniel Lehman <dlehman(a)esri.com> Date: Wed Aug 30 09:44:16 2017 -0700 wininet: Fix proxy bypass with wildcard if domain length matches with server. Signed-off-by: Daniel Lehman <dlehman(a)esri.com> Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wininet/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index dc106d8..9191188 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1732,7 +1732,7 @@ static BOOL HTTP_DomainMatches(LPCWSTR server, substr_t domain) return FALSE; len = strlenW(dot + 1); - if(len <= domain.len - 2) + if(len < domain.len - 2) return FALSE; /* The server's domain is longer than the wildcard, so it
participants (1)
-
Alexandre Julliard