diff options
author | fabient <fabient@FreeBSD.org> | 2009-10-21 18:29:26 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2009-10-21 18:29:26 +0000 |
commit | 5ac7c6cc4e2462cb819184a2e2efc3cc49d4b667 (patch) | |
tree | b39c4a83ce94cafa2abaa0117a88414e602de718 /lib/libfetch | |
parent | 54dc4c4edce93d8b7a392d6c4ec150986f328d41 (diff) | |
download | FreeBSD-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.c | 2 |
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 */ |