Skip to content

Commit

Permalink
Make sure that temporary/IPP Everywhere queues don't try to work with…
Browse files Browse the repository at this point in the history
… printers

that return invalid capabilities.
  • Loading branch information
michaelrsweet committed Sep 9, 2024
1 parent 96b3bdf commit f8592e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scheduler/ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f8592e5

Please sign in to comment.