Ensure we null out fsp after a close in all paths.
authorJeremy Allison <jra@samba.org>
Mon, 29 Sep 2008 17:57:32 +0000 (10:57 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 29 Sep 2008 17:57:32 +0000 (10:57 -0700)
Jeremy.

source/printing/nt_printing.c

index 2c3769330591f3cd9c2d43bdd6327c9834190af7..0468769f9ba20e9568973d9a091c374b8f7e877e 100644 (file)
@@ -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 */