From 5c9e10b4b9fb9abe7af6058c0513115ddb325500 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 2 Sep 2013 09:09:16 +0000 Subject: smbd: Slightly simplify enum_file_close_fn Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Fri Sep 6 15:29:55 CEST 2013 on sn-devel-104 --- source3/rpc_server/srvsvc/srv_srvsvc_nt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/rpc_server/srvsvc') diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c index 1af350ac51..8f3a4cf17d 100644 --- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c +++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c @@ -2480,8 +2480,7 @@ static void enum_file_close_fn( const struct share_mode_entry *e, state->r->out.result = ntstatus_to_werror( messaging_send_buf(state->msg_ctx, e->pid, MSG_SMB_CLOSE_FILE, - (uint8 *)msg, - MSG_SMB_SHARE_MODE_ENTRY_SIZE)); + (uint8 *)msg, sizeof(msg))); } /******************************************************************** -- cgit