From: Michael R Sweet Date: Sat, 1 Aug 2026 21:45:48 +0000 (-0400) Subject: Fix tag checks in _ppdCreateFromIPP. X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Fcups.git Fix tag checks in _ppdCreateFromIPP. --- 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...