Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2009 23:24:42 +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-7@freebsd.org
Subject:   svn commit: r200013 - stable/7/lib/libfetch
Message-ID:  <200912012324.nB1NOgTw080030@svn.freebsd.org>

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

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

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

Modified: stable/7/lib/libfetch/common.c
==============================================================================
--- stable/7/lib/libfetch/common.c	Tue Dec  1 23:23:52 2009	(r200012)
+++ stable/7/lib/libfetch/common.c	Tue Dec  1 23:24:42 2009	(r200013)
@@ -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?200912012324.nB1NOgTw080030>