summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-02 09:09:16 +0000
committerMichael Adam <obnox@samba.org>2013-09-06 15:29:55 +0200
commit5c9e10b4b9fb9abe7af6058c0513115ddb325500 (patch)
treec3f55bfb13c37ffe2c8ba595664da7c85ecf5d58 /source3/rpc_server
parentf9a7ea2df2aaae8b22cfb209e26ceee3c8252ce0 (diff)
downloadsamba-5c9e10b4b9fb9abe7af6058c0513115ddb325500.tar.gz
samba-5c9e10b4b9fb9abe7af6058c0513115ddb325500.tar.bz2
samba-5c9e10b4b9fb9abe7af6058c0513115ddb325500.zip
smbd: Slightly simplify enum_file_close_fn
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Sep 6 15:29:55 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c3
1 files changed, 1 insertions, 2 deletions
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)));
}
/********************************************************************