From 23535f7d49d455042f60c1123bade66bbbf592f8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 21 Aug 2006 23:30:39 +0000 Subject: r17676: Fix printing bug found by kukks. Don't copy a return value into an auto on the stack that gets removed when we return from the frame :-). Jeremy. (This used to be commit 85bf8a16116e5eb9d4400e809531737d45890abb) --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 5c10c59054..117d3ac595 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1139,7 +1139,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, DEBUG(10, ("open_file_ntcreate: printer open fname=%s\n", fname)); - return print_fsp_open(conn, fname, &fsp); + return print_fsp_open(conn, fname, result); } /* We add aARCH to this as this mode is only used if the file is -- cgit