Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
[CP] Fix KW issues
Browse files Browse the repository at this point in the history
Fix KW issues.

[Internal]
Platforms: Gen8, Gen9, Gen10, Gen11, Gen12
OS: Linux
Feature impact: HDCP
Resolves: N/A
Related-to: N/A
Klocwork: PASS
IP Scan: PASS

Change-Id: Ied02d28338f1e93238bc70a1c992e199821cf2e1

Signed-off-by: Yu Shiqiang <[email protected]>
  • Loading branch information
shiqiangyu committed Jul 5, 2019
1 parent 4f6ab65 commit e9b4f22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/srm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ int32_t SrmTable::VerifySignature(

if(DSA_SUCCESS != DSA_set0_pqg(dsa, p, q, g))
{
DSA_free(dsa);
DSA_SIG_free(sig);
BN_free(p);
BN_free(q);
BN_free(g);
Expand All @@ -260,6 +262,8 @@ int32_t SrmTable::VerifySignature(

if(DSA_SUCCESS != DSA_set0_key(dsa, pub_key, nullptr))
{
DSA_free(dsa);
DSA_SIG_free(sig);
BN_free(pub_key);
return EINVAL;
}
Expand All @@ -269,6 +273,8 @@ int32_t SrmTable::VerifySignature(

if(DSA_SUCCESS != DSA_SIG_set0(sig, r, s))
{
DSA_free(dsa);
DSA_SIG_free(sig);
BN_free(r);
BN_free(s);
return EINVAL;
Expand Down

0 comments on commit e9b4f22

Please sign in to comment.