diff options
author | Günther Deschner <gd@samba.org> | 2010-12-22 11:34:22 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-12-22 14:21:58 +0100 |
commit | 94e83e385e5ba66f1415164214f7afd5e4ad7536 (patch) | |
tree | ab19bd29a4d432fb31a3900385c6a1e05b89faef /source3/printing | |
parent | d0e164458d33228f74b41023b11f234837cc9668 (diff) | |
download | samba-94e83e385e5ba66f1415164214f7afd5e4ad7536.tar.gz samba-94e83e385e5ba66f1415164214f7afd5e4ad7536.tar.bz2 samba-94e83e385e5ba66f1415164214f7afd5e4ad7536.zip |
s3-printing: fix crash bug in print_spool_open().
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 22 14:21:58 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printspoolss.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c index 8426b84fec..8effb6ec48 100644 --- a/source3/printing/printspoolss.c +++ b/source3/printing/printspoolss.c @@ -208,7 +208,9 @@ done: if (!NT_STATUS_IS_OK(status)) { if (fd != -1) { close(fd); - unlink(fsp->print_file->filename); + if (fsp->print_file) { + unlink(fsp->print_file->filename); + } } /* We need to delete the job from spoolss too */ if (pf->jobid) { |