mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-15 20:39:17 +00:00
typo: don't add URI_prefix_len and URI_suffix_len twice
This commit is contained in:
parent
ae8f702fef
commit
12517f1b7a
@ -11013,12 +11013,12 @@ int sip_auth_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_U
|
||||
|
||||
u32 md5_max_len = 4 * 64;
|
||||
|
||||
u32 total_length = method_len + 1 + URI_prefix_len + URI_prefix_len + URI_resource_len + URI_suffix_len + URI_suffix_len;
|
||||
u32 total_length = method_len + 1 + URI_prefix_len + URI_resource_len + URI_suffix_len;
|
||||
|
||||
if (URI_prefix_len) total_length++;
|
||||
if (URI_suffix_len) total_length++;
|
||||
|
||||
if (total_length > md5_max_len) return (PARSER_SALT_LENGTH);
|
||||
if (total_length >= md5_max_len) return (PARSER_SALT_LENGTH);
|
||||
|
||||
u32 md5_remaining_len = md5_max_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user