Skip to content

Commit 34b3067

Browse files
committed
Ensure that stat is initialized.
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent 2c643c5 commit 34b3067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pk/ecc/ecc_verify_hash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ int ecc_verify_hash_v2(const unsigned char *sig,
4646
int *stat,
4747
const ecc_key *key)
4848
{
49+
LTC_ARGCHK(stat != NULL);
50+
*stat = 0;
4951
if (opts->type < 0 || opts->type >= LTC_ARRAY_SIZE(s_ecc_verify_hash))
5052
return CRYPT_PK_INVALID_TYPE;
5153
if (s_ecc_verify_hash[opts->type] == NULL)

0 commit comments

Comments
 (0)