diff -up cups-1.4.2/cups/dest.c.str3503 cups-1.4.2/cups/dest.c --- cups-1.4.2/cups/dest.c.str3503 2010-02-23 19:20:32.000000000 +0100 +++ cups-1.4.2/cups/dest.c 2010-02-23 19:22:20.000000000 +0100 @@ -555,7 +555,7 @@ cupsGetNamedDest(http_t *http, /* I if (!cups_get_sdests(http, op, name, 0, &dest)) { - if (op == CUPS_GET_DEFAULT || name) + if (op == CUPS_GET_DEFAULT || (name && !set_as_default)) return (NULL); /*