ACDR: Fix dissection of control packets

The recorded protocol on this case is eth and not ip.
This commit is contained in:
Orgad Shaneh 2020-11-01 13:17:59 +02:00 committed by Alexis La Goutte
parent 4d7b07dfe4
commit 2533f666a9
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ static void
acdr_payload_handler(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb,
acdr_dissector_data_t *data, const char *proto_name)
{
if (data->header_added) {
if (data->header_added && data->media_type != ACDR_Control) {
dissector_handle_t dissector = ip_dissector_handle;
if (data->media_type == ACDR_DTLS || data->media_type == ACDR_T38)
dissector = udp_dissector_handle;