Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2009 18:29:27 +0000 (UTC)
From:      Fabien Thomas <fabient@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198339 - head/lib/libfetch
Message-ID:  <200910211829.n9LITRt1006959@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fabient
Date: Wed Oct 21 18:29:26 2009
New Revision: 198339
URL: http://svn.freebsd.org/changeset/base/198339

Log:
  PR: 139751
  Approved by: des
  Obtained from: Xavier Heiny <xavier.heiny@netasq.com>
  MFC after: 3 weeks

Modified:
  head/lib/libfetch/common.c

Modified: head/lib/libfetch/common.c
==============================================================================
--- head/lib/libfetch/common.c	Wed Oct 21 18:09:48 2009	(r198338)
+++ head/lib/libfetch/common.c	Wed Oct 21 18:29:26 2009	(r198339)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910211829.n9LITRt1006959>