summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libfetch/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index d49336a..c54804b 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -772,7 +772,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 */
OpenPOWER on IntegriCloud