Removed unnecessary check for transport protocol.

This commit is contained in:
Thomas Dreibholz 2021-02-21 16:45:11 +01:00
parent cdbbf5d384
commit 2fe740c00d
No known key found for this signature in database
GPG Key ID: 5CD5D12AA0877B49
1 changed files with 25 additions and 27 deletions

View File

@ -446,7 +446,6 @@ heur_dissect_npmp(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree, v
if (length < 4) if (length < 4)
return FALSE; return FALSE;
if((pinfo->ptype == PT_TCP) || (pinfo->ptype == PT_UDP) || (pinfo->ptype == PT_DCCP)) {
/* For TCP, UDP or DCCP: /* For TCP, UDP or DCCP:
Type must either be NETPERFMETER_DATA or NETPERFMETER_IDENTIFY_FLOW */ Type must either be NETPERFMETER_DATA or NETPERFMETER_IDENTIFY_FLOW */
const guint8 type = tvb_get_guint8(message_tvb, offset_message_type); const guint8 type = tvb_get_guint8(message_tvb, offset_message_type);
@ -474,7 +473,6 @@ heur_dissect_npmp(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree, v
return FALSE; return FALSE;
break; break;
} }
}
return dissect_npmp(message_tvb, pinfo, tree, data); return dissect_npmp(message_tvb, pinfo, tree, data);
} }