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