From: Michael R Sweet Date: Thu, 15 Aug 2024 01:15:51 +0000 (-0400) Subject: Fix IPP everywhere printer setup (Issue #1033) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bada6c6cbf3426b54443d7cb598037578c2fc2b;p=thirdparty%2Fcups.git Fix IPP everywhere printer setup (Issue #1033) --- diff --git a/scheduler/ipp.c b/scheduler/ipp.c index d345f626d7..16eae49712 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -5285,7 +5285,7 @@ create_local_bg_thread( request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, 2, 0); - ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer->device_uri); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, device_uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); response = cupsDoRequest(http, request, resource); @@ -5306,7 +5306,7 @@ create_local_bg_thread( request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, 1, 1); - ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer->device_uri); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, device_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "all"); response = cupsDoRequest(http, request, resource); @@ -5329,7 +5329,7 @@ create_local_bg_thread( request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, 2, 0); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, - "printer-uri", NULL, uri); + "printer-uri", NULL, device_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "media-col-database"); response2 = cupsDoRequest(http, request, resource);