]> git.pld-linux.org Git - packages/cups.git/blob - cups-str1723.patch
- added -str1723.patch and -str1740.patch
[packages/cups.git] / cups-str1723.patch
1 --- cups-1.2.1/cups/http-addrlist.c.orig        2006-05-24 16:55:15.000000000 +0100
2 +++ cups-1.2.1/cups/http-addrlist.c     2006-05-24 16:56:11.000000000 +0100
3 @@ -506,6 +506,9 @@
4         temp->addr.ipv6.sin6_addr.s6_addr32[3] = htonl(1);
5  #  endif /* WIN32 */
6  
7 +        if (!first)
8 +          first = temp;
9 +
10          addr = temp;
11        }
12  
13 @@ -527,6 +530,9 @@
14         temp->addr.ipv4.sin_port        = htons(portnum);
15         temp->addr.ipv4.sin_addr.s_addr = htonl(0x7f000001);
16  
17 +        if (!first)
18 +          first = temp;
19 +
20          if (addr)
21           addr->next = temp;
22         else
23 @@ -556,6 +562,9 @@
24          temp->addr.ipv6.sin6_family = AF_INET6;
25         temp->addr.ipv6.sin6_port   = htons(portnum);
26  
27 +        if (!first)
28 +          first = temp;
29 +
30          addr = temp;
31        }
32  
33 @@ -576,6 +585,9 @@
34          temp->addr.ipv4.sin_family = AF_INET;
35         temp->addr.ipv4.sin_port   = htons(portnum);
36  
37 +        if (!first)
38 +          first = temp;
39 +
40          if (addr)
41           addr->next = temp;
42         else
This page took 0.05205 seconds and 3 git commands to generate.