/*
- * "$Id: dest.c 7460 2008-04-16 02:19:54Z mike $"
+ * "$Id: dest.c 7946 2008-09-16 23:27:54Z mike $"
*
* User-defined destination (and option) support for the Common UNIX
* Printing System (CUPS).
*/
num_dests = cups_get_sdests(http, CUPS_GET_PRINTERS, NULL, num_dests, dests);
- num_dests = cups_get_sdests(http, CUPS_GET_CLASSES, NULL, num_dests, dests);
+ if (cupsLastError() < IPP_REDIRECTION_OTHER_SITE)
+ num_dests = cups_get_sdests(http, CUPS_GET_CLASSES, NULL, num_dests, dests);
+
+ if (cupsLastError() >= IPP_REDIRECTION_OTHER_SITE)
+ {
+ cupsFreeDests(num_dests, *dests);
+ *dests = (cups_dest_t *)0;
+ return (0);
+ }
/*
* Make a copy of the "real" queues for a later sanity check...
/*
- * End of "$Id: dest.c 7460 2008-04-16 02:19:54Z mike $".
+ * End of "$Id: dest.c 7946 2008-09-16 23:27:54Z mike $".
*/