summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2016-10-20 15:02:40 -0400
committerMichael R Sweet <michaelrsweet@gmail.com>2016-10-20 15:02:40 -0400
commitb0a1368dc23f1ab224c7a5c645d4d4aadf1514c6 (patch)
tree16172922f6f7a251af9529dc35e26ede8357ca05 /backend
parent95e00ac365503feeed8de953423601ac13a795f6 (diff)
downloadcups-b0a1368dc23f1ab224c7a5c645d4d4aadf1514c6.tar.gz
Fix crash bug.
Diffstat (limited to 'backend')
-rw-r--r--backend/ipp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/ipp.c b/backend/ipp.c
index de998a5dc..180418664 100644
--- a/backend/ipp.c
+++ b/backend/ipp.c
@@ -2345,13 +2345,12 @@ check_printer_state(
if ((attr = ippFindAttribute(response, "printer-state",
IPP_TAG_ENUM)) != NULL)
printer_state = (ipp_pstate_t)attr->values[0].integer;
-
- ippDelete(response);
}
fprintf(stderr, "DEBUG: Get-Printer-Attributes: %s (%s)\n",
ippErrorString(cupsLastError()), cupsLastErrorString());
debug_attributes(response);
+ ippDelete(response);
/*
* Return the printer-state value...