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:
parent
d0e164458d
commit
94e83e385e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user