Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2009 23:23:52 +0000 (UTC)
From:      Fabien Thomas <fabient@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r200012 - stable/8/lib/libfetch
Message-ID:  <200912012323.nB1NNqv2079966@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fabient
Date: Tue Dec  1 23:23:52 2009
New Revision: 200012
URL: http://svn.freebsd.org/changeset/base/200012

Log:
  MFC 198339:
  Fix the NO_PROXY handling.
  
  PR: 139751

Modified:
  stable/8/lib/libfetch/common.c
Directory Properties:
  stable/8/lib/libfetch/   (props changed)

Modified: stable/8/lib/libfetch/common.c
==============================================================================
--- stable/8/lib/libfetch/common.c	Tue Dec  1 23:07:38 2009	(r200011)
+++ stable/8/lib/libfetch/common.c	Tue Dec  1 23:23:52 2009	(r200012)
@@ -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?200912012323.nB1NNqv2079966>