From: Volker Lendecke Date: Wed, 7 Feb 2018 09:52:23 +0000 (+0100) Subject: srvsvc: Use the passed-in file id, not the one from share_mode_entry X-Git-Tag: tevent-0.9.36~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=786e307fd433065c097915a9d98fc71b4afbab14;p=thirdparty%2Fsamba.git srvsvc: Use the passed-in file id, not the one from share_mode_entry Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c index 19e63053ece..0d15381e31c 100644 --- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c +++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c @@ -124,7 +124,7 @@ static int enum_file_fn(const struct share_mode_entry *e, /* need to count the number of locks on a file */ ZERO_STRUCT( fsp ); - fsp.file_id = e->id; + fsp.file_id = *id; if ( (brl = brl_get_locks(talloc_tos(), &fsp)) != NULL ) { num_locks = brl_num_locks(brl);