diff --git a/src/argon2.c b/src/argon2.c index 391bc7d..7b825f2 100644 --- a/src/argon2.c +++ b/src/argon2.c @@ -226,6 +226,8 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen, ctx.free_cbk = NULL; ctx.secret = NULL; ctx.secretlen = 0; + ctx.pwdlen = 0; + ctx.pwd = NULL; ctx.ad = malloc(ctx.adlen); ctx.salt = malloc(ctx.saltlen); ctx.out = malloc(ctx.outlen);