tags 431696 +patch
kthxbye

We were freeing the files structure for the old file twice when opening the new 
file
failed. The attached trivial patch fixes this issue.
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index ded985c..a3b3a10 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1377,6 +1377,7 @@ static int file_version_is_newer(connection_struct *conn, fstring new_file, fstr
 		}
 	}
 	close_file(fsp, NORMAL_CLOSE);
+	fsp = NULL;
 
 	/* Get file version info (if available) for new file */
 	filepath = driver_unix_convert(conn,new_file,&stat_buf);

Reply via email to