]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix tag checks in _ppdCreateFromIPP. master
authorMichael R Sweet <msweet@msweet.org>
Sat, 1 Aug 2026 21:45:48 +0000 (17:45 -0400)
committerMichael R Sweet <msweet@msweet.org>
Sat, 1 Aug 2026 21:45:48 +0000 (17:45 -0400)
cups/ppd-cache.c

index fcbac0921f3fd7bc5efe0b7482d3f5de4214c6be..3e73d9f06806638208bbaf3bdf7260783c65fb5a 100644 (file)
@@ -5123,7 +5123,7 @@ _ppdCreateFromIPP(char   *buffer, /* I - Filename buffer */
          else if (keyword && !strcmp(keyword, "two-sided-short-edge"))
            cupsFilePuts(fp, "*Duplex DuplexTumble\n");
         }
          else if (keyword && !strcmp(keyword, "two-sided-short-edge"))
            cupsFilePuts(fp, "*Duplex DuplexTumble\n");
         }
-        else if (ippValidateAttribute(attr) && (ippGetValueTag(attr) == IPP_TAG_BOOLEAN || ippGetValueTag(attr) != IPP_TAG_INTEGER || ippGetValueTag(attr) != IPP_TAG_KEYWORD))
+        else if (ippValidateAttribute(attr) && (ippGetValueTag(attr) == IPP_TAG_BOOLEAN || ippGetValueTag(attr) == IPP_TAG_INTEGER || ippGetValueTag(attr) == IPP_TAG_KEYWORD))
         {
          /*
           * Add attribute name and value as-is...
         {
          /*
           * Add attribute name and value as-is...