SOURCES: cups-str1723.patch (NEW) - fix 'localhost' fallback in ht...

charles charles at pld-linux.org
Fri Jun 2 18:50:46 CEST 2006


Author: charles                      Date: Fri Jun  2 16:50:46 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix 'localhost' fallback in httpAddrGetList() (bug STR #1723)

---- Files affected:
SOURCES:
   cups-str1723.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cups-str1723.patch
diff -u /dev/null SOURCES/cups-str1723.patch:1.1
--- /dev/null	Fri Jun  2 18:50:46 2006
+++ SOURCES/cups-str1723.patch	Fri Jun  2 18:50:41 2006
@@ -0,0 +1,42 @@
+--- cups-1.2.1/cups/http-addrlist.c.orig	2006-05-24 16:55:15.000000000 +0100
++++ cups-1.2.1/cups/http-addrlist.c	2006-05-24 16:56:11.000000000 +0100
+@@ -506,6 +506,9 @@
+ 	temp->addr.ipv6.sin6_addr.s6_addr32[3] = htonl(1);
+ #  endif /* WIN32 */
+ 
++        if (!first)
++          first = temp;
++
+         addr = temp;
+       }
+ 
+@@ -527,6 +530,9 @@
+ 	temp->addr.ipv4.sin_port        = htons(portnum);
+ 	temp->addr.ipv4.sin_addr.s_addr = htonl(0x7f000001);
+ 
++        if (!first)
++          first = temp;
++
+         if (addr)
+ 	  addr->next = temp;
+ 	else
+@@ -556,6 +562,9 @@
+         temp->addr.ipv6.sin6_family = AF_INET6;
+ 	temp->addr.ipv6.sin6_port   = htons(portnum);
+ 
++        if (!first)
++          first = temp;
++
+         addr = temp;
+       }
+ 
+@@ -576,6 +585,9 @@
+         temp->addr.ipv4.sin_family = AF_INET;
+ 	temp->addr.ipv4.sin_port   = htons(portnum);
+ 
++        if (!first)
++          first = temp;
++
+         if (addr)
+ 	  addr->next = temp;
+ 	else
================================================================


More information about the pld-cvs-commit mailing list