1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

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
This commit is contained in:
Günther Deschner 2010-12-22 11:34:22 +01:00
parent d0e164458d
commit 94e83e385e

View File

@ -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) {