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

source3/printing/nt_printing.c

index a3b3a1021fca761e768e30229e0d12baf5017fff..19c44d1bbbc589bc4404af1ceca317895cc60162 100644 (file)
@@ -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 */