1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

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>
This commit is contained in:
Poornima Gurusiddaiah 2014-02-14 03:27:12 +00:00 committed by Ira Cooper
parent 68d5f27464
commit 72f9932d4f

View File

@ -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);
}
}