mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +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(),
|
dbgtext( "%s (%s) ", get_remote_machine_name(),
|
||||||
tsocket_address_string(conn->sconn->remote_address,
|
tsocket_address_string(conn->sconn->remote_address,
|
||||||
talloc_tos()) );
|
talloc_tos()) );
|
||||||
|
#if defined(WITH_SMB1SERVER)
|
||||||
if (sconn->using_smb2) {
|
if (sconn->using_smb2) {
|
||||||
|
#endif
|
||||||
signing_active = smb2_signing_key_valid(
|
signing_active = smb2_signing_key_valid(
|
||||||
session->global->encryption_key);
|
session->global->encryption_key);
|
||||||
|
#if defined(WITH_SMB1SERVER)
|
||||||
} else {
|
} else {
|
||||||
signing_active = smb1_srv_is_signing_active(xconn);
|
signing_active = smb1_srv_is_signing_active(xconn);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
dbgtext( "%s", signing_active ? "signed " : "");
|
dbgtext( "%s", signing_active ? "signed " : "");
|
||||||
dbgtext( "connect to service %s ",
|
dbgtext( "connect to service %s ",
|
||||||
lp_const_servicename(snum) );
|
lp_const_servicename(snum) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user