From d4dfe58a729031cd41fb8a59605dd3de5a4c74d6 Mon Sep 17 00:00:00 2001 From: radix Date: Thu, 28 Jul 2016 10:38:31 -0500 Subject: [PATCH] CRAM_MD5 throws salt length exception when the issue is in the hash --- src/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.c b/src/shared.c index 8488463e6..931a100ab 100644 --- a/src/shared.c +++ b/src/shared.c @@ -16949,7 +16949,7 @@ int crammd5_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf) hash_len = base64_decode (base64_to_int, (const u8 *) hash_pos, hash_len, tmp_buf); - if (hash_len < 32 + 1) return (PARSER_SALT_LENGTH); + if (hash_len < 32 + 1) return (PARSER_HASH_LENGTH); uint user_len = hash_len - 32;