diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-13 15:26:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-14 11:23:42 +0100 |
commit | c51da257699e7900aa2069eb71eb530e66f35fcc (patch) | |
tree | 823f92f0da3133ab2ab2150de671b7b5519945f6 /source3 | |
parent | 1515f7db00ec3c01bc9c808edddf44052ac91c3f (diff) | |
download | samba-c51da257699e7900aa2069eb71eb530e66f35fcc.tar.gz samba-c51da257699e7900aa2069eb71eb530e66f35fcc.tar.bz2 samba-c51da257699e7900aa2069eb71eb530e66f35fcc.zip |
s3:smbd/server: avoid msg_ctx_to_sconn() in smbd_accept_connection()
This is the place where we should create smbd_server_connection,
when we're ready to remove the global variable.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 14 11:23:42 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 29456f2e8b..f351b99501 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -399,7 +399,7 @@ static void smbd_accept_connection(struct tevent_context *ev, struct smbd_open_socket *s = talloc_get_type_abort(private_data, struct smbd_open_socket); struct messaging_context *msg_ctx = s->parent->msg_ctx; - struct smbd_server_connection *sconn = msg_ctx_to_sconn(msg_ctx); + struct smbd_server_connection *sconn = smbd_server_conn; struct sockaddr_storage addr; socklen_t in_addrlen = sizeof(addr); int fd; |