diff options
author | Volker Lendecke <vl@samba.org> | 2018-02-07 11:40:58 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-02-13 00:26:43 +0100 |
commit | ddb1524669681bffc86090432f01a21621d11d2f (patch) | |
tree | be179f91d0fc4a2ac6a08237d708e6d5b0488d77 /source3 | |
parent | b7e29d04c6156a6eb5c02b12e53abd1a04d75471 (diff) | |
download | samba-ddb1524669681bffc86090432f01a21621d11d2f.tar.gz |
smbd: Avoid a dependency on share_mode_entry->id
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/close.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index c7ec3fdb6af..3324d3ec4e0 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -1280,15 +1280,16 @@ void msg_close_file(struct messaging_context *msg_ctx, DATA_BLOB *data) { files_struct *fsp = NULL; + struct file_id id; struct share_mode_entry e; struct smbd_server_connection *sconn = talloc_get_type_abort(private_data, struct smbd_server_connection); - message_to_share_mode_entry(&e.id, &e, (char *)data->data); + message_to_share_mode_entry(&id, &e, (char *)data->data); if(DEBUGLVL(10)) { - char *sm_str = share_mode_str(NULL, 0, &e.id, &e); + char *sm_str = share_mode_str(NULL, 0, &id, &e); if (!sm_str) { smb_panic("talloc failed"); } @@ -1297,7 +1298,7 @@ void msg_close_file(struct messaging_context *msg_ctx, TALLOC_FREE(sm_str); } - fsp = file_find_dif(sconn, e.id, e.share_file_id); + fsp = file_find_dif(sconn, id, e.share_file_id); if (!fsp) { DEBUG(10,("msg_close_file: failed to find file.\n")); return; |