Initialize ctx->pwdlen in argon2 string decoder

This commit is contained in:
Frank Denis 2016-01-21 08:42:23 +01:00
parent 82c7c45924
commit d1b028abe3

View File

@ -293,6 +293,7 @@ int decode_string(argon2_context *ctx, const char *str, argon2_type type) {
ctx->adlen = 0;
ctx->saltlen = 0;
ctx->outlen = 0;
ctx->pwdlen = 0;
if (type == Argon2_i) {
CC("$argon2i");
} else {