Somewhat improve heuristic when SIP is encapsulated in another protocol.
svn path=/trunk/; revision=18531
This commit is contained in:
parent
f27bb044dd
commit
036661ed3d
1 changed files with 9 additions and 0 deletions
|
@ -1216,6 +1216,15 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr
|
|||
*/
|
||||
orig_offset = offset;
|
||||
linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE);
|
||||
if (tvb_strnlen(tvb, offset, linelen) > -1)
|
||||
{
|
||||
/*
|
||||
* There's a NULL in the line,
|
||||
* this may be SIP within another protocol.
|
||||
* This heuristic still needs to improve.
|
||||
*/
|
||||
return -2;
|
||||
}
|
||||
line_type = sip_parse_line(tvb, offset, linelen, &token_1_len);
|
||||
if (line_type == OTHER_LINE) {
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue