From 3cba8305bd32c7a83fd9c39eaea953b8a0199b22 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 29 Sep 2008 10:57:32 -0700 Subject: [PATCH] Ensure we null out fsp after a close in all paths. Jeremy. --- source/printing/nt_printing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 2c376933059..0468769f9ba 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -1420,6 +1420,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 */ -- 2.11.4.GIT