Skip to content

Commit

Permalink
Add NULL check when copying collections.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jun 20, 2024
1 parent a66f419 commit dd30d6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cups/ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,12 @@ ippCopyAttribute(
{
ipp_t *col = ippNew(); // Copy of collection

if (!col)
{
ippDeleteAttribute(dst, dstattr);
return (NULL);
}

ippCopyAttributes(col, srcval->collection, false, /*cb*/NULL, /*cb_data*/NULL);

if (dstattr)
Expand Down

0 comments on commit dd30d6e

Please sign in to comment.