srvsvc: Use the passed-in file_id
authorVolker Lendecke <vl@samba.org>
Wed, 7 Feb 2018 10:10:14 +0000 (11:10 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 12 Feb 2018 23:26:43 +0000 (00:26 +0100)
The one in share_mode_entry will go

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/srvsvc/srv_srvsvc_nt.c

index 8e830ff9112ec07f79c5fa69909c5dee02ee2d11..e0561b6e7e0eb1adf158caf77fc23811df1db4cc 100644 (file)
@@ -2723,7 +2723,7 @@ static int enum_file_close_fn(const struct share_mode_entry *e,
 
        /* Ok - send the close message. */
        DBG_DEBUG("request to close file %s, %s\n", sharepath,
-                 share_mode_str(talloc_tos(), 0, &e->id, e));
+                 share_mode_str(talloc_tos(), 0, id, e));
 
        share_mode_entry_to_message(msg, e);