Ticket #9471: cups-2.2.4-cupsgetdests-1.patch

File cups-2.2.4-cupsgetdests-1.patch, 565 bytes (added by Tim Tassonis, 7 years ago)
  • cups/dest.c

    diff -ruN cups-2.2.4/cups/dest.c cups-2.2.4-cupsgetdests-1/cups/dest.c
    old new  
    20592059
    20602060  cupsEnumDests(0, 1000, NULL, 0, 0, (cups_dest_cb_t)cups_get_cb, &data);
    20612061
    2062   if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE)
    2063   {
    2064     cupsFreeDests(data.num_dests, data.dests);
    2065 
    2066     *dests = (cups_dest_t *)0;
    2067 
    2068     return (0);
    2069   }
    2070 
    20712062 /*
    20722063  * Make a copy of the "real" queues for a later sanity check...
    20732064  */