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:
Svyatoslav 2017-06-14 12:10:57 +03:00 committed by Don HO
parent 6d542a4041
commit 39b2386b33

View File

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