summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-03 17:29:56 +0200
committerVolker Lendecke <vl@samba.org>2010-10-03 18:17:09 +0200
commit924357ab524bdb296b86ee4e34b9a9669d1d5901 (patch)
tree25672c61911c9692986f4177ba468c66f1219d67 /source3/smbd
parent898f7c9603b1a9057f0a65b368c569d52b627238 (diff)
downloadsamba-924357ab524bdb296b86ee4e34b9a9669d1d5901.tar.gz
samba-924357ab524bdb296b86ee4e34b9a9669d1d5901.tar.bz2
samba-924357ab524bdb296b86ee4e34b9a9669d1d5901.zip
s3: Remove smbd_server_conn from msg_close_file
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c9
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;