]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure that temporary/IPP Everywhere queues don't try to work with printers
authorMichael R Sweet <msweet@msweet.org>
Mon, 9 Sep 2024 13:59:06 +0000 (09:59 -0400)
committerMichael R Sweet <msweet@msweet.org>
Mon, 9 Sep 2024 13:59:06 +0000 (09:59 -0400)
that return invalid capabilities.

scheduler/ipp.c

index 16eae497127274474553f227827c10f214efde8d..7215281ebf7abf9ea2442f97f5c7078a2d286cb7 100644 (file)
@@ -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);