summaryrefslogtreecommitdiff
path: root/cups/dest.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2017-07-07 14:23:21 -0400
committerMichael R Sweet <michaelrsweet@gmail.com>2017-07-07 14:23:21 -0400
commitb2f85109da901eb652babdc4f2a846c1c28228ff (patch)
tree943858574c0c76942f394143f1d02f6a9cf8f86f /cups/dest.c
parentfb963b8dd1cdec59f5436b5239f620f35649e731 (diff)
downloadcups-b2f85109da901eb652babdc4f2a846c1c28228ff.tar.gz
The `cupsGetDests` function incorrectly returned an empty list of printers if there was
no default printer (Issue #5046)
Diffstat (limited to 'cups/dest.c')
-rw-r--r--cups/dest.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/cups/dest.c b/cups/dest.c
index 9d7426ed3..09bb76b73 100644
--- a/cups/dest.c
+++ b/cups/dest.c
@@ -2072,17 +2072,6 @@ cupsGetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_
cupsEnumDests(0, 1000, NULL, 0, 0, (cups_dest_cb_t)cups_get_cb, &data);
- if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE)
- {
- DEBUG_printf(("1cupsGetDests2: cupsLastError() is %s, returning 0.", cupsLastErrorString()));
-
- cupsFreeDests(data.num_dests, data.dests);
-
- *dests = (cups_dest_t *)0;
-
- return (0);
- }
-
/*
* Make a copy of the "real" queues for a later sanity check...
*/