diff options
author | Poornima Gurusiddaiah <pgurusid@redhat.com> | 2014-02-14 03:27:12 +0000 |
---|---|---|
committer | Ira Cooper <ira@samba.org> | 2014-02-24 09:51:31 +0530 |
commit | 72f9932d4f70f76360490b315f95aa8dedc98390 (patch) | |
tree | 4d6b58a85eb583a9dde7c89e51e40e5021c46ec4 /source3/printing | |
parent | 68d5f2746466e43148f19e668093a64e8c610a51 (diff) | |
download | samba-72f9932d4f70f76360490b315f95aa8dedc98390.tar.gz samba-72f9932d4f70f76360490b315f95aa8dedc98390.tar.xz samba-72f9932d4f70f76360490b315f95aa8dedc98390.zip |
s3:printing: Fix a possible NULL dereference.
Coverity-Id: 710708
Signed-off-by: Poornima Gurusiddaiah <pgurusid@redhat.com>
Reviewed-by: Ira Cooper <ira@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printspoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c index 26d8a00646..5dba6352d3 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); } } |