]> sjero.net Git - wget/commitdiff
Ignore zero length domains in no_proxy.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 25 May 2010 16:36:02 +0000 (18:36 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 25 May 2010 16:36:02 +0000 (18:36 +0200)
src/ChangeLog
src/host.c

index a476e7cdb9f7cae98c8e699eb46509f9308e4312..82a339c3f5b29e500fd09b6a055ed479640ab751 100644 (file)
@@ -1,5 +1,7 @@
 2010-05-25  Giuseppe Scrivano  <gscrivano@gnu.org>
 
+       * host.c (sufmatch): Do not consider zero length entries.
+
        * http.c (H_10X): New macro.
        (gethttp): Silently ignore 1xx responses.
 
index c6e42acd01f76786d1adf5b43ca529507deef8d8..df8bdda02385a91012f1a138496768fb297a4497 100644 (file)
@@ -874,6 +874,9 @@ sufmatch (const char **list, const char *what)
   lw = strlen (what);
   for (i = 0; list[i]; i++)
     {
+      if (list[i][0] == '\0')
+        continue;
+
       for (j = strlen (list[i]), k = lw; j >= 0 && k >= 0; j--, k--)
         if (c_tolower (list[i][j]) != c_tolower (what[k]))
           break;