mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
smbd: Disable call to smb1_srv_is_signing_active without smb1
Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3daa70d7a7
commit
b431ec8da0
@ -857,12 +857,16 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
|
||||
dbgtext( "%s (%s) ", get_remote_machine_name(),
|
||||
tsocket_address_string(conn->sconn->remote_address,
|
||||
talloc_tos()) );
|
||||
#if defined(WITH_SMB1SERVER)
|
||||
if (sconn->using_smb2) {
|
||||
#endif
|
||||
signing_active = smb2_signing_key_valid(
|
||||
session->global->encryption_key);
|
||||
#if defined(WITH_SMB1SERVER)
|
||||
} else {
|
||||
signing_active = smb1_srv_is_signing_active(xconn);
|
||||
}
|
||||
#endif
|
||||
dbgtext( "%s", signing_active ? "signed " : "");
|
||||
dbgtext( "connect to service %s ",
|
||||
lp_const_servicename(snum) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user