From 72f9932d4f70f76360490b315f95aa8dedc98390 Mon Sep 17 00:00:00 2001 From: Poornima Gurusiddaiah Date: Fri, 14 Feb 2014 03:27:12 +0000 Subject: [PATCH] s3:printing: Fix a possible NULL dereference. Coverity-Id: 710708 Signed-off-by: Poornima Gurusiddaiah Reviewed-by: Ira Cooper Reviewed-by: Stefan Metzmacher --- source3/printing/printspoolss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c index 26d8a006460..5dba6352d35 100644 --- a/source3/printing/printspoolss.c +++ b/source3/printing/printspoolss.c @@ -248,7 +248,7 @@ done: } } /* We need to delete the job from spoolss too */ - if (pf->jobid) { + if (pf && pf->jobid) { print_spool_terminate(fsp->conn, pf); } } -- 2.11.4.GIT