mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
smbd: Disable smb1 in smbd_server_connection_handler
Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
e153f4270c
commit
3d37047f3c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user