diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/conn.c | 8 |
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) { |