]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The IPP backend could crash if the printer disconnects early (STR #4284)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 8 Mar 2013 18:14:50 +0000 (18:14 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 8 Mar 2013 18:14:50 +0000 (18:14 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10887 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.6.txt
backend/ipp.c

index c679ce737c8565bce95754fcaadeb0cc98df3a8d..99a9ed18cefc0e5000e569461d89b079df68ba3c 100644 (file)
@@ -12,6 +12,8 @@ CHANGES IN CUPS V1.6.2
        - Added a French localization (STR #4247)
        - Added a Russian localization (STR #4228)
        - Updated the Catalan localization (STR #4202)
+       - The IPP backend could crash if the printer disconnects early
+         (STR #4284)
        - cupsGetPPD did not work with statically-configured CUPS shared
          queues (STR #4178)
        - The scheduler did not support long MIME media types (STR #4270)
index e69ca15e85c49a8250ab1cdc51bd00f03495704a..9465d0893cf1bfc818309ecc5bb2b041b484d8fa 100644 (file)
@@ -2042,7 +2042,8 @@ main(int  argc,                           /* I - Number of command-line args */
   */
 
   if (have_supplies &&
-      !backendSNMPSupplies(snmp_fd, http->hostaddr, &page_count, NULL) &&
+      !backendSNMPSupplies(snmp_fd, &(http->addrlist->addr), &page_count,
+                           NULL) &&
       page_count > start_count)
     fprintf(stderr, "PAGE: total %d\n", page_count - start_count);