]> git.ipfire.org Git - thirdparty/cups.git/commit
backend/ipp: Change handling of job_canceled 74/head
authorSean Kau <skau@chromium.org>
Thu, 17 Dec 2020 19:04:59 +0000 (11:04 -0800)
committerPranav Batra <batrapranav@chromium.org>
Wed, 13 Jan 2021 23:24:31 +0000 (23:24 +0000)
commiteb60f2dcbc9b6722f652153e84a106f58f650e0a
tree8ce219cba9d709f99b63eb8837080f4238e58edf
parenta72b0140ee9ad72f7ffc1f46fbe962bde159cbb8
backend/ipp: Change handling of job_canceled

job_canceled can be -1, 0, or 1. 0 indicates no error, 1 indicates
that we were cancelled in normal operations (user cancelled from
computer) and -1 indicates cancelled by printer.  There is clearly
an assumption that -1 is false since there is a check for
job_canceled < 0 a few lines later.

BUG=b:174793115
TEST=Print to printer with malformed PWG-Raster content

Change-Id: I88f504d00e0680507cd439b633c6c288cf7c5390
backend/ipp.c