git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e128b23
)
s3: Remove smbd_server_conn from msg_force_tdis
author
Volker Lendecke
<vl@samba.org>
Sun, 3 Oct 2010 15:39:00 +0000
(17:39 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 3 Oct 2010 16:17:09 +0000
(18:17 +0200)
source3/smbd/conn.c
patch
|
blob
|
history
diff --git
a/source3/smbd/conn.c
b/source3/smbd/conn.c
index fffb5bf9de7210c004af4d2d2ba68f5283eb7e1a..d12495bf7882fd5b0684dabd21c74093c78ef833 100644
(file)
--- 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) {