summaryrefslogtreecommitdiff
path: root/libfetch/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfetch/common.c')
-rw-r--r--libfetch/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfetch/common.c b/libfetch/common.c
index e237828..9cbe32d 100644
--- a/libfetch/common.c
+++ b/libfetch/common.c
@@ -1085,7 +1085,7 @@ fetch_no_proxy_match(const char *host)
break;
d_len = q - p;
- if (d_len > 0 && h_len > d_len &&
+ if (d_len > 0 && h_len >= d_len &&
strncasecmp(host + h_len - d_len,
p, d_len) == 0) {
/* domain name matches */