1
0
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:
David Mulder 2022-03-18 15:05:27 -06:00 committed by Jeremy Allison
parent f2fc4227a5
commit 137d29897c

View File

@ -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);