summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-09-29 10:57:22 -0700
committerJeremy Allison <jra@samba.org>2008-09-29 10:57:22 -0700
commitc383e8d760b64cb25c93550876280b3c9fc33e5c (patch)
tree8e621ada51d6cde486f7193a72af0ba05b884716 /source3
parent55e201b0a1b24e328b718b78ab8fa926bcc9e90b (diff)
downloadsamba-c383e8d760b64cb25c93550876280b3c9fc33e5c.tar.gz
samba-c383e8d760b64cb25c93550876280b3c9fc33e5c.tar.bz2
samba-c383e8d760b64cb25c93550876280b3c9fc33e5c.zip
Ensure we null out fsp after a close in all paths.
Jeremy.
Diffstat (limited to 'source3')
-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 a3b3a1021f..19c44d1bbb 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1418,6 +1418,7 @@ static int file_version_is_newer(connection_struct *conn, fstring new_file, fstr
}
}
close_file(fsp, NORMAL_CLOSE);
+ fsp = NULL;
if (use_version && (new_major != old_major || new_minor != old_minor)) {
/* Compare versions and choose the larger version number */