summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/printing/printspoolss.c2
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);
}
}