smbd: only pass struct smbXsrv_client to smb1srv_tcon_disconnect_all()
authorStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2018 15:13:39 +0000 (17:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2018 15:49:06 +0000 (17:49 +0200)
That's all it needs.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/globals.h
source3/smbd/server_exit.c
source3/smbd/smbXsrv_tcon.c

index f463da8a36e0b50dd9d84c0c6be1c0238b5e176a..a6213718b6bf1012ead6b6a703b1a7a651eb1c1b 100644 (file)
@@ -620,7 +620,7 @@ NTSTATUS smb1srv_tcon_create(struct smbXsrv_connection *conn,
 NTSTATUS smb1srv_tcon_lookup(struct smbXsrv_connection *conn,
                             uint16_t tree_id, NTTIME now,
                             struct smbXsrv_tcon **tcon);
-NTSTATUS smb1srv_tcon_disconnect_all(struct smbXsrv_connection *conn);
+NTSTATUS smb1srv_tcon_disconnect_all(struct smbXsrv_client *client);
 NTSTATUS smb2srv_tcon_table_init(struct smbXsrv_session *session);
 NTSTATUS smb2srv_tcon_create(struct smbXsrv_session *session,
                             NTTIME now,
index 50b43a1ced4f6f4c0cba3d7ebde519940da98f6a..00d9fefed9a24722b015f4bd6bbba8d1cef7797b 100644 (file)
@@ -144,7 +144,7 @@ static void exit_server_common(enum server_exit_reason how,
                 * Note: this is a no-op for smb2 as
                 * conn->tcon_table is empty
                 */
-               status = smb1srv_tcon_disconnect_all(xconn);
+               status = smb1srv_tcon_disconnect_all(client);
                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(0,("Server exit (%s)\n",
                                (reason ? reason : "normal exit")));
index 627eeb166d9a1138f93c76596b956df943675b52..4552ebb15ebabc7b7ce5231b5d905dfc073d8d43 100644 (file)
@@ -1112,9 +1112,8 @@ NTSTATUS smb1srv_tcon_lookup(struct smbXsrv_connection *conn,
                                         local_id, now, tcon);
 }
 
-NTSTATUS smb1srv_tcon_disconnect_all(struct smbXsrv_connection *conn)
+NTSTATUS smb1srv_tcon_disconnect_all(struct smbXsrv_client *client)
 {
-       struct smbXsrv_client *client = conn->client;
 
        /*
         * We do not pass a vuid here,