Argon2: explicitly initialize ctx.secret to NULL
This commit is contained in:
parent
367afac0bf
commit
bd15b68569
@ -182,6 +182,9 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
|
||||
|
||||
memset(&ctx, 0, sizeof ctx);
|
||||
|
||||
ctx.secret = NULL;
|
||||
ctx.secretlen = 0;
|
||||
|
||||
/* max values, to be updated in decode_string */
|
||||
encoded_len = strlen(encoded);
|
||||
ctx.adlen = encoded_len;
|
||||
|
Loading…
Reference in New Issue
Block a user