summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-01-26 14:46:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:11 -0500
commitf0df38a4e8d7ce8e11e5d34f645c5b4da9d47291 (patch)
treeb078f7d5a4a4f21f3b7601dbc39f069ab8adba1e /source3/printing
parentd728056203c31a877a2e1ebf42b094c964bbd4ea (diff)
downloadsamba-f0df38a4e8d7ce8e11e5d34f645c5b4da9d47291.tar.gz
samba-f0df38a4e8d7ce8e11e5d34f645c5b4da9d47291.tar.bz2
samba-f0df38a4e8d7ce8e11e5d34f645c5b4da9d47291.zip
r5012: fix segfault caused by using a ipp_t * after calling cupsDoRequest()
(This used to be commit 0ac3c4c5a231c314213dbce29e25911ddb04de2d)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/print_cups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 44ae4916ca..59ab41b9f6 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -912,6 +912,8 @@ static int cups_queue_get(const char *printer_name,
* printer-uri
*/
+ request = ippNew();
+
request->request.op.operation_id = IPP_GET_PRINTER_ATTRIBUTES;
request->request.op.request_id = 1;