s3: Add msg_ctx to smbd_server_connection
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 15:50:04 +0000 (17:50 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 5 Jul 2010 09:06:23 +0000 (11:06 +0200)
It would be obvious to initialize this in smbd_init_globals(), but there the
messaging_context can't be initialized yet because we don't have smb.conf
loaded yet.

source3/smbd/globals.h
source3/smbd/server.c

index 799cf17be675f973156b3fe4c6ef4e111d5f05ee..435936ea0af4e099f33e54e4c1903b2459bbf47b 100644 (file)
@@ -455,6 +455,7 @@ struct pending_auth_data;
 struct smbd_server_connection {
        const struct tsocket_address *local_address;
        const struct tsocket_address *remote_address;
+       struct messaging_context *msg_ctx;
        struct {
                bool got_session;
        } nbt;
index 3660abb659bd0ab14f8f33627ccd41c0731e48e2..7b788e8d1a1b54f5fb7b034c4e742fabd33220c9 100644 (file)
@@ -1013,6 +1013,8 @@ extern void build_options(bool screen);
                exit(1);
        }
 
+       smbd_server_conn->msg_ctx = smbd_messaging_context();
+
        smbd_setup_sig_term_handler();
        smbd_setup_sig_hup_handler();