GVSP: enforce heuristic (get some false positive with STUN)
Change-Id: Ic1da51a71ee4fa60267751d7bb3f46225ad2f084 Reviewed-on: https://code.wireshark.org/review/16573 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
d3ce757de0
commit
6fbaf9be34
|
@ -1404,6 +1404,16 @@ static gboolean dissect_gvsp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree
|
|||
/* Check for valid format types */
|
||||
if (format >= 1 && format <= 6)
|
||||
{
|
||||
if(format == GVSP_PACKET_LEADER && tvb_captured_length_remaining(tvb, 8) >= 2)
|
||||
{
|
||||
guint32 payloadtype;
|
||||
payloadtype = tvb_get_ntohs(tvb, 8);
|
||||
payloadtype &= 0x3FFF;
|
||||
if (try_val_to_str_ext(payloadtype, &payloadtypenames_ext) == NULL ){
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
conversation = find_or_create_conversation(pinfo);
|
||||
conversation_set_dissector(conversation, gvsp_handle);
|
||||
dissect_gvsp(tvb, pinfo, tree, data);
|
||||
|
|
Loading…
Reference in New Issue