]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/ipp-support.c
Implement more of testdest unit test.
[thirdparty/cups.git] / cups / ipp-support.c
index 9928a91d4c79adac1dcec8ffdee613641c157432..40c01eb6098ac8e66e8c89a4510060969cbe6352 100644 (file)
@@ -2051,8 +2051,8 @@ ippOpString(ipp_op_t op)          /* I - Operation ID */
     return ("windows-ext");
   else if (op >= IPP_OP_CUPS_GET_DEFAULT && op <= IPP_OP_CUPS_GET_PPD)
     return (ipp_cups_ops[op - IPP_OP_CUPS_GET_DEFAULT]);
-  else if (op == IPP_OP_CUPS_GET_DOCUMENT)
-    return (ipp_cups_ops2[0]);
+  else if (op >= IPP_OP_CUPS_GET_DOCUMENT && op <= IPP_OP_CUPS_CREATE_LOCAL_PRINTER)
+    return (ipp_cups_ops2[op - IPP_OP_CUPS_GET_DOCUMENT]);
 
  /*
   * No, build an "0xxxxx" operation string...