From 137d29897c5c9a6ef77832b98fbc446dff2588b4 Mon Sep 17 00:00:00 2001 From: David Mulder Date: Fri, 18 Mar 2022 15:05:27 -0600 Subject: [PATCH] smbd: Disable smb1 in smbXsrv_connection_init_tables Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- source3/smbd/process.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 3d48f49b649..abcc5af8a3b 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3376,6 +3376,7 @@ NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn, return status; } } else { +#if defined(WITH_SMB1SERVER) status = smb1srv_session_table_init(conn); if (!NT_STATUS_IS_OK(status)) { conn->protocol = PROTOCOL_NONE; @@ -3393,6 +3394,10 @@ NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn, conn->protocol = PROTOCOL_NONE; return status; } +#else + conn->protocol = PROTOCOL_NONE; + return NT_STATUS_INVALID_NETWORK_RESPONSE; +#endif } set_Protocol(protocol);