From: Jeremy Allison Date: Tue, 16 Jun 2020 21:58:54 +0000 (-0700) Subject: s3: smbd: Make smbXsrv_client_valid_connections() external. X-Git-Tag: ldb-2.2.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7a4a7f103a29b84ebae8519fa7cc25c836308b9;p=thirdparty%2Fsamba.git s3: smbd: Make smbXsrv_client_valid_connections() external. 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 Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index d3b6ac2ffe6..2a963439bef 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -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); diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 0a5083b5b8f..b58d3fbf097 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -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;