From f351461ecdda6c9e14a7094b8ad7074697668ed5 Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 14 Feb 2017 21:45:18 +0100 Subject: [PATCH] max esalt_buf for sip fixed: we also need to append 0x80 --- src/interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interface.c b/src/interface.c index 25c36f248..e6d2390d4 100644 --- a/src/interface.c +++ b/src/interface.c @@ -11122,6 +11122,8 @@ int sip_auth_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_U tmp_digest[3]); } + if (esalt_len >= 152) return (PARSER_SALT_LENGTH); + // add 0x80 to esalt esalt_buf_ptr[esalt_len] = 0x80;