From: Michael R Sweet Date: Mon, 9 Sep 2024 13:59:06 +0000 (-0400) Subject: Make sure that temporary/IPP Everywhere queues don't try to work with printers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8592e5ea4c07f7f340c7eb83967cb6861f3ff5b;p=thirdparty%2Fcups.git Make sure that temporary/IPP Everywhere queues don't try to work with printers that return invalid capabilities. --- diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 16eae49712..7215281ebf 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -5356,6 +5356,13 @@ create_local_bg_thread( } } + // Validate response from printer... + if (!ippValidateAttributes(response)) + { + send_ipp_status(con, IPP_STATUS_ERROR_DEVICE, _("Printer returned invalid data: %s"), cupsGetErrorString()); + goto finish_response; + } + // TODO: Grab printer icon file... httpClose(http);