From 3d37047f3c5a8bfc48293601d50e61198f76012e Mon Sep 17 00:00:00 2001 From: David Mulder Date: Fri, 18 Mar 2022 15:26:27 -0600 Subject: [PATCH] smbd: Disable smb1 in smbd_server_connection_handler Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- source3/smbd/process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 712ae075519..9eb1459066d 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2353,13 +2353,17 @@ static void smbd_server_connection_handler(struct tevent_context *ev, return; } if (flags & TEVENT_FD_READ) { +#if defined(WITH_SMB1SERVER) if (lp_server_min_protocol() > PROTOCOL_NT1) { +#endif smbd_smb2_server_connection_read_handler(xconn, xconn->transport.sock); +#if defined(WITH_SMB1SERVER) } else { smbd_smb1_server_connection_read_handler(xconn, xconn->transport.sock); } +#endif return; } }