mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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;
|
return;
|
||||||
}
|
}
|
||||||
if (flags & TEVENT_FD_READ) {
|
if (flags & TEVENT_FD_READ) {
|
||||||
|
#if defined(WITH_SMB1SERVER)
|
||||||
if (lp_server_min_protocol() > PROTOCOL_NT1) {
|
if (lp_server_min_protocol() > PROTOCOL_NT1) {
|
||||||
|
#endif
|
||||||
smbd_smb2_server_connection_read_handler(xconn,
|
smbd_smb2_server_connection_read_handler(xconn,
|
||||||
xconn->transport.sock);
|
xconn->transport.sock);
|
||||||
|
#if defined(WITH_SMB1SERVER)
|
||||||
} else {
|
} else {
|
||||||
smbd_smb1_server_connection_read_handler(xconn,
|
smbd_smb1_server_connection_read_handler(xconn,
|
||||||
xconn->transport.sock);
|
xconn->transport.sock);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user