]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix an issue with the IPP backend and unsupported "sides" values (rdar://51775322)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 17 Jun 2019 19:01:39 +0000 (15:01 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 17 Jun 2019 19:01:39 +0000 (15:01 -0400)
.gitattributes
CHANGES.md
backend/ipp.c

index 1a5c3e6c7b8f1bd08ae5051760131c5cc8dc92b7..2f20357d74c19f5aa54abd314f6fabb6dc676e87 100644 (file)
@@ -1,3 +1,5 @@
 .git* export-ignore
 .mailmap export-ignore
+examples/testfile.pcl -text
+exampels/testfile.txt -text
 scripts export-ignore
index 06eba39b2a35f10c547f90d052c6945b94d5b2a3..c1211534b66251af03279e608c6d1230dd98be4a 100644 (file)
@@ -11,6 +11,8 @@ Changes in CUPS v2.3.0
 - Removed dead code from the scheduler (Issue #5593)
 - "make" failed with GZIP options (Issue #5595)
 - Fixed a NULL pointer dereference bug in `httpGetSubField2` (Issue #5598)
+- Fixed an issue with unsupported "sides" values in the IPP backend
+  (rdar://51775322)
 - Fixed an issue with `EXPECT !name WITH-VALUE ...` tests.
 - Fixed a command ordering issue in the Zebra ZPL driver.
 
index 7851956dbadb21669ff25a4275ea62104e4080d1..8226acc7b074595d135d1dc632b14fd6ab26fd26 100644 (file)
@@ -1504,7 +1504,7 @@ main(int  argc,                           /* I - Number of command-line args */
 
         const char *sides = cupsGetOption("sides", num_options, options);
 
-        if (!strncmp(sides, "two-sided-", 10))
+        if (!sides || !strncmp(sides, "two-sided-", 10))
         {
           fputs("DEBUG: Unable to do two-sided printing, setting sides to 'one-sided'.\n", stderr);
           num_options = cupsAddOption("sides", "one-sided", num_options, &options);