CVE-2016-2114: s3:smbd: use the correct default values for "smb signing"
[samba.git] / source3 / smbd / smb2_sesssetup.c
index a95f8a1a4997f04d6cbd6ce58ec5f6610ed77e25..78bda7b23335f4d5528abd843b07d5919c51ac43 100644 (file)
@@ -262,7 +262,8 @@ static NTSTATUS smbd_smb2_auth_generic_return(struct smbXsrv_session *session,
        }
 
        if ((in_security_mode & SMB2_NEGOTIATE_SIGNING_REQUIRED) ||
-           lp_server_signing() == SMB_SIGNING_REQUIRED) {
+           (xconn->smb2.server.security_mode & SMB2_NEGOTIATE_SIGNING_REQUIRED))
+       {
                x->global->signing_flags = SMBXSRV_SIGNING_REQUIRED;
        }