Skip to content

Commit

Permalink
Error out if an attribute conversion is unsuccessful.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jun 14, 2024
1 parent a0b20eb commit a7a28e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cups/ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2683,7 +2683,8 @@ ippReadIO(void *src, // I - Data source
if (value_tag != tag)
{
DEBUG_printf("1ippReadIO: Converting %s attribute from %s to %s.", attr->name, ippTagString(value_tag), ippTagString(tag));
ippSetValueTag(ipp, &attr, tag);
if (!ippSetValueTag(ipp, &attr, tag))
goto rollback;
}
}
else if (value_tag == IPP_TAG_INTEGER || value_tag == IPP_TAG_RANGE)
Expand Down

0 comments on commit a7a28e6

Please sign in to comment.