diff options
author | Volker Lendecke <vl@samba.org> | 2010-10-03 17:29:56 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-10-03 18:17:09 +0200 |
commit | 924357ab524bdb296b86ee4e34b9a9669d1d5901 (patch) | |
tree | 25672c61911c9692986f4177ba468c66f1219d67 /source3 | |
parent | 898f7c9603b1a9057f0a65b368c569d52b627238 (diff) | |
download | samba-924357ab524bdb296b86ee4e34b9a9669d1d5901.tar.gz samba-924357ab524bdb296b86ee4e34b9a9669d1d5901.tar.bz2 samba-924357ab524bdb296b86ee4e34b9a9669d1d5901.zip |
s3: Remove smbd_server_conn from msg_close_file
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/close.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 13ebe337e2..00bcef0a71 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -1103,9 +1103,16 @@ void msg_close_file(struct messaging_context *msg_ctx, struct server_id server_id, DATA_BLOB *data) { + struct smbd_server_connection *sconn; files_struct *fsp = NULL; struct share_mode_entry e; + sconn = msg_ctx_to_sconn(msg_ctx); + if (sconn == NULL) { + DEBUG(1, ("could not find sconn\n")); + return; + } + message_to_share_mode_entry(&e, (char *)data->data); if(DEBUGLVL(10)) { @@ -1118,7 +1125,7 @@ void msg_close_file(struct messaging_context *msg_ctx, TALLOC_FREE(sm_str); } - fsp = file_find_dif(smbd_server_conn, e.id, e.share_file_id); + fsp = file_find_dif(sconn, e.id, e.share_file_id); if (!fsp) { DEBUG(10,("msg_close_file: failed to find file.\n")); return; |