From 5a2d2d4c8d2d987f8fdc9f6e5b6ab75ce6450a54 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 1 Aug 2026 17:45:48 -0400 Subject: [PATCH] Fix tag checks in _ppdCreateFromIPP. --- cups/ppd-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index fcbac0921f..3e73d9f068 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -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 (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... -- 2.47.3