summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authorfabient <fabient@FreeBSD.org>2009-10-21 18:29:26 +0000
committerfabient <fabient@FreeBSD.org>2009-10-21 18:29:26 +0000
commit5ac7c6cc4e2462cb819184a2e2efc3cc49d4b667 (patch)
treeb39c4a83ce94cafa2abaa0117a88414e602de718 /lib/libfetch
parent54dc4c4edce93d8b7a392d6c4ec150986f328d41 (diff)
downloadFreeBSD-src-5ac7c6cc4e2462cb819184a2e2efc3cc49d4b667.zip
FreeBSD-src-5ac7c6cc4e2462cb819184a2e2efc3cc49d4b667.tar.gz
PR: 139751
Approved by: des Obtained from: Xavier Heiny <xavier.heiny@netasq.com> MFC after: 3 weeks
Diffstat (limited to 'lib/libfetch')
-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