summaryrefslogtreecommitdiff
path: root/backend/ipp.c
diff options
context:
space:
mode:
authorZdenek Dohnal <zdohnal@redhat.com>2020-11-09 07:40:20 +0100
committerZdenek Dohnal <zdohnal@redhat.com>2020-11-09 07:40:20 +0100
commit5313c22785446473771e07d5adb1d2f11cbcbfe7 (patch)
tree71009357c7b194bcfa3e8074c964a9d4c8fb1219 /backend/ipp.c
parent8b6765a726cdf106f6d9b55d50fe45d6ad73af03 (diff)
backend,scheduler/ipp.c: Fix 'printer-alert' invalid free
The fix is created by Bernhard Übelacker from apple/cups #5826.
Diffstat (limited to 'backend/ipp.c')
-rw-r--r--backend/ipp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/ipp.c b/backend/ipp.c
index 35c0711c0..3e601b2ad 100644
--- a/backend/ipp.c
+++ b/backend/ipp.c
@@ -3075,7 +3075,7 @@ report_printer_state(ipp_t *ipp) /* I - IPP response */
* Report alerts and messages...
*/
- if ((pa = ippFindAttribute(ipp, "printer-alert", IPP_TAG_TEXT)) != NULL)
+ if ((pa = ippFindAttribute(ipp, "printer-alert", IPP_TAG_STRING)) != NULL)
report_attr(pa);
if ((pam = ippFindAttribute(ipp, "printer-alert-message",