smbd: only pass struct smbXsrv_client to smbXsrv_session_logoff_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_session.c

index a6213718b6bf1012ead6b6a703b1a7a651eb1c1b..77e8f5c0dd6b5178e43e71c4b020f2fcff9e4427 100644 (file)
@@ -586,7 +586,7 @@ struct tevent_req *smb2srv_session_shutdown_send(TALLOC_CTX *mem_ctx,
                                        struct smbd_smb2_request *current_req);
 NTSTATUS smb2srv_session_shutdown_recv(struct tevent_req *req);
 NTSTATUS smbXsrv_session_logoff(struct smbXsrv_session *session);
-NTSTATUS smbXsrv_session_logoff_all(struct smbXsrv_connection *conn);
+NTSTATUS smbXsrv_session_logoff_all(struct smbXsrv_client *client);
 NTSTATUS smb1srv_session_table_init(struct smbXsrv_connection *conn);
 NTSTATUS smb1srv_session_lookup(struct smbXsrv_connection *conn,
                                uint16_t vuid, NTTIME now,
index 00d9fefed9a24722b015f4bd6bbba8d1cef7797b..652bf6a1776b752f68de39b90c73e659c7a2310c 100644 (file)
@@ -137,7 +137,7 @@ static void exit_server_common(enum server_exit_reason how,
 
        change_to_root_user();
 
-       if (xconn != NULL) {
+       if (client != NULL) {
                NTSTATUS status;
 
                /*
@@ -153,7 +153,7 @@ static void exit_server_common(enum server_exit_reason how,
                                  "triggering cleanup\n", nt_errstr(status)));
                }
 
-               status = smbXsrv_session_logoff_all(xconn);
+               status = smbXsrv_session_logoff_all(client);
                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(0,("Server exit (%s)\n",
                                (reason ? reason : "normal exit")));
index 3d8f0be06efa5c9ece67af7b466628f6ced649af..cf537e7dc9d33c12b7132052e4dcab95c494e03d 100644 (file)
@@ -1756,9 +1756,9 @@ struct smbXsrv_session_logoff_all_state {
 static int smbXsrv_session_logoff_all_callback(struct db_record *local_rec,
                                               void *private_data);
 
-NTSTATUS smbXsrv_session_logoff_all(struct smbXsrv_connection *conn)
+NTSTATUS smbXsrv_session_logoff_all(struct smbXsrv_client *client)
 {
-       struct smbXsrv_session_table *table = conn->client->session_table;
+       struct smbXsrv_session_table *table = client->session_table;
        struct smbXsrv_session_logoff_all_state state;
        NTSTATUS status;
        int count = 0;