r5012: fix segfault caused by using a ipp_t * after calling cupsDoRequest()
authorGerald Carter <jerry@samba.org>
Wed, 26 Jan 2005 14:46:54 +0000 (14:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:11 +0000 (10:55 -0500)
(This used to be commit 0ac3c4c5a231c314213dbce29e25911ddb04de2d)

source3/printing/print_cups.c

index 44ae4916caecd007da548bc7ea8c233faeb2a4c4..59ab41b9f6750b5fe9fa365e0260859fef56348d 100644 (file)
@@ -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;