summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-29 19:09:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-29 19:09:53 +0200
commit55e201b0a1b24e328b718b78ab8fa926bcc9e90b (patch)
tree0b5bcd77ee3edd7746dc70f5c6b6697da11be90c /source3/printing
parent0ee4d20adb21d2e4491ca0cbfe3c031cb89fde92 (diff)
downloadsamba-55e201b0a1b24e328b718b78ab8fa926bcc9e90b.tar.gz
samba-55e201b0a1b24e328b718b78ab8fa926bcc9e90b.tar.bz2
samba-55e201b0a1b24e328b718b78ab8fa926bcc9e90b.zip
Avoid freeing fsp twice when opening new_file fails. (Debian #431696)
If opening new_file fails, fsp would still be set to the files_struct of old_file.
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index ded985c260..a3b3a1021f 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1377,6 +1377,7 @@ static int file_version_is_newer(connection_struct *conn, fstring new_file, fstr
}
}
close_file(fsp, NORMAL_CLOSE);
+ fsp = NULL;
/* Get file version info (if available) for new file */
filepath = driver_unix_convert(conn,new_file,&stat_buf);