summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-03 17:39:00 +0200
committerVolker Lendecke <vl@samba.org>2010-10-03 18:17:09 +0200
commit79a4be4f773ef7ce7340619102374796de150a8a (patch)
treea88b53841528fe0aaee182a0a9b1a9dda0f0fb15 /source3/smbd
parente128b2316550f654279345c1f38087b125d9b19b (diff)
downloadsamba-79a4be4f773ef7ce7340619102374796de150a8a.tar.gz
samba-79a4be4f773ef7ce7340619102374796de150a8a.tar.bz2
samba-79a4be4f773ef7ce7340619102374796de150a8a.zip
s3: Remove smbd_server_conn from msg_force_tdis
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/conn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index fffb5bf9de..d12495bf78 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -347,10 +347,16 @@ void msg_force_tdis(struct messaging_context *msg,
struct server_id server_id,
DATA_BLOB *data)
{
- struct smbd_server_connection *sconn = smbd_server_conn;
+ struct smbd_server_connection *sconn;
connection_struct *conn, *next;
fstring sharename;
+ sconn = msg_ctx_to_sconn(msg);
+ if (sconn == NULL) {
+ DEBUG(1, ("could not find sconn\n"));
+ return;
+ }
+
fstrcpy(sharename, (const char *)data->data);
if (strcmp(sharename, "*") == 0) {