s3: smbd: Make smbXsrv_client_valid_connections() external.
authorJeremy Allison <jra@samba.org>
Tue, 16 Jun 2020 21:58:54 +0000 (14:58 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 24 Jun 2020 18:53:32 +0000 (18:53 +0000)
We will need to this ensure our client connections are
terminated in close_file before exiting with outstanding
aio.

Followup-bugfix for:

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/globals.h
source3/smbd/smb2_server.c

index d3b6ac2ffe6561703a8e3b2b476731254aebb80f..2a963439bef2017a7df783b65a4f09330eb6e033 100644 (file)
@@ -222,6 +222,7 @@ void smbd_notify_cancel_by_smbreq(const struct smb_request *smbreq);
 
 void smbXsrv_connection_disconnect_transport(struct smbXsrv_connection *xconn,
                                             NTSTATUS status);
+size_t smbXsrv_client_valid_connections(struct smbXsrv_client *client);
 void smbd_server_connection_terminate_ex(struct smbXsrv_connection *xconn,
                                         const char *reason,
                                         const char *location);
index 0a5083b5b8fccc8319b92e6b255b8fe99d9f635b..b58d3fbf09722e6167ffc76b5ae231a08c756777 100644 (file)
@@ -1121,7 +1121,7 @@ void smbXsrv_connection_disconnect_transport(struct smbXsrv_connection *xconn,
        DO_PROFILE_INC(disconnect);
 }
 
-static size_t smbXsrv_client_valid_connections(struct smbXsrv_client *client)
+size_t smbXsrv_client_valid_connections(struct smbXsrv_client *client)
 {
        struct smbXsrv_connection *xconn = NULL;
        size_t num_ok = 0;