From: Jeremy Allison Date: Mon, 29 Sep 2008 17:57:22 +0000 (-0700) Subject: Ensure we null out fsp after a close in all paths. X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~91^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c383e8d760b64cb25c93550876280b3c9fc33e5c;p=thirdparty%2Fsamba.git Ensure we null out fsp after a close in all paths. Jeremy. --- diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index a3b3a1021fc..19c44d1bbbc 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 */