diff options
author | Volker Lendecke <vl@samba.org> | 2011-09-12 17:23:07 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-09-13 11:00:12 +0200 |
commit | 2b32918117a042d36be79042f0ceaed35042489b (patch) | |
tree | 6ab5649e664f96fd6d6909efcd8e05c05ee4cb06 /source3 | |
parent | f6fa51ddf71dac374b42e5a7849623120eee7fb1 (diff) | |
download | samba-2b32918117a042d36be79042f0ceaed35042489b.tar.gz samba-2b32918117a042d36be79042f0ceaed35042489b.tar.bz2 samba-2b32918117a042d36be79042f0ceaed35042489b.zip |
s3: Remove a reference to smbd_server_conn
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/msg_idmap.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source3/smbd/msg_idmap.c b/source3/smbd/msg_idmap.c index dbd151d1cd..e4a5652a9e 100644 --- a/source3/smbd/msg_idmap.c +++ b/source3/smbd/msg_idmap.c @@ -112,10 +112,18 @@ static void id_cache_kill(struct messaging_context *msg_ctx, { const char *msg = (data && data->data) ? (const char *)data->data : "<NULL>"; - struct user_struct *validated_users = - smbd_server_conn->smb1.sessions.validated_users; + struct smbd_server_connection *sconn; + struct user_struct *validated_users; struct id_cache_ref id; + sconn = msg_ctx_to_sconn(msg_ctx); + if (sconn == NULL) { + DEBUG(1, ("could not find sconn\n")); + return; + } + + validated_users = sconn->smb1.sessions.validated_users; + if (!id_cache_ref_parse(msg, &id)) { DEBUG(0, ("Invalid ?ID: %s\n", msg)); return; |