Fixes identical sub-expressions for certificate verification
An issue has been found by using PVS-Studio analyzer. Analyzer warning: V501 There are identical sub-expressions to the left and to the right of the '!=' operator: subject != subject. Closes #3399
This commit is contained in:
parent
6d542a4041
commit
39b2386b33
@ -247,7 +247,7 @@ bool VerifySignedLibrary(const wstring& filepath,
|
||||
OutputDebugString(TEXT("VerifyLibrary: Invalid certificate display name\n"));
|
||||
}
|
||||
|
||||
if ( status && !cert_subject.empty() && subject != subject)
|
||||
if ( status && !cert_subject.empty() && cert_subject != subject)
|
||||
{
|
||||
status = false;
|
||||
OutputDebugString(TEXT("VerifyLibrary: Invalid certificate subject\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user