Skip to content

Commit 9e199f3

Browse files
authored
Merge pull request #10165 from rlm2002/coverity
Coverity fix
2 parents cc72851 + 5e87b82 commit 9e199f3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34750,6 +34750,9 @@ static int test_DhAgree_rejects_p_minus_1(void)
3475034750
};
3475134751
byte pMinus1[256];
3475234752

34753+
XMEMSET(&key, 0, sizeof(DhKey));
34754+
XMEMSET(&rng, 0, sizeof(WC_RNG));
34755+
3475334756
ExpectIntEQ(wc_InitRng(&rng), 0);
3475434757
ExpectIntEQ(wc_InitDhKey(&key), 0);
3475534758
ExpectIntEQ(wc_DhSetNamedKey(&key, WC_FFDHE_2048), 0);

0 commit comments

Comments
 (0)