From: mike Date: Fri, 8 Mar 2013 18:14:50 +0000 (+0000) Subject: The IPP backend could crash if the printer disconnects early (STR #4284) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35ef82b5765c5e981a93b06cc57c58abbe3fc1d2;p=thirdparty%2Fcups.git The IPP backend could crash if the printer disconnects early (STR #4284) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10887 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/CHANGES-1.6.txt b/CHANGES-1.6.txt index c679ce737c..99a9ed18ce 100644 --- a/CHANGES-1.6.txt +++ b/CHANGES-1.6.txt @@ -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) diff --git a/backend/ipp.c b/backend/ipp.c index e69ca15e85..9465d0893c 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -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);