summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-10-04 14:26:20 +0200
committerGünther Deschner <gd@samba.org>2020-05-15 09:04:36 +0000
commitd8ab88e77f8bbd29d9222348eb4f9a290a4f3694 (patch)
tree83583692a8de071fa6e6e4f59b2a53580efd5e27 /source3/smbd/globals.h
parent0cec96526bf4d3209caf36c4a19632ff5d5dd112 (diff)
downloadsamba-d8ab88e77f8bbd29d9222348eb4f9a290a4f3694.tar.gz
s3:smbd: split out smbXsrv_connection_disconnect_transport()
It's good to have an isolated function that just disconnects the lower layer transport and remembers the first error status. This will be used in more placed in the following commits. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 77911f051df..2d40f080260 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -220,6 +220,8 @@ NTSTATUS smbd_calculate_access_mask(connection_struct *conn,
void smbd_notify_cancel_by_smbreq(const struct smb_request *smbreq);
+void smbXsrv_connection_disconnect_transport(struct smbXsrv_connection *xconn,
+ NTSTATUS status);
void smbd_server_connection_terminate_ex(struct smbXsrv_connection *xconn,
const char *reason,
const char *location);