diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-12-22 21:41:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 21:41:32 +0100 |
commit | 5fafe8374a5cc0cc890053c5bf0cb81b3bda80c9 (patch) | |
tree | 41a82c662550d5aaab0c31e45875106c61e3949e /src/lib/protocols/steam.c | |
parent | e9d5e72fb58d5989673487c4b4ef4584d8694467 (diff) |
postgres: improve detection (#1831)
Remove some dead code (found via coverage report)
Diffstat (limited to 'src/lib/protocols/steam.c')
-rw-r--r-- | src/lib/protocols/steam.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/protocols/steam.c b/src/lib/protocols/steam.c index 0dc993245..a53d12848 100644 --- a/src/lib/protocols/steam.c +++ b/src/lib/protocols/steam.c @@ -243,7 +243,7 @@ static void ndpi_check_steam_udp3(struct ndpi_detection_module_struct *ndpi_stru } /* This is a packet in another direction. Check if we find the proper response. */ - if ((payload_len == 0) || ((payload_len == 8) && (packet->payload[0] == 0x3a) && (packet->payload[1] == 0x18) && (packet->payload[2] == 0x00) && (packet->payload[3] == 0x00))) { + if ((payload_len == 8) && (packet->payload[0] == 0x3a) && (packet->payload[1] == 0x18) && (packet->payload[2] == 0x00) && (packet->payload[3] == 0x00)) { NDPI_LOG_INFO(ndpi_struct, "found STEAM\n"); ndpi_int_steam_add_connection(ndpi_struct, flow); } else { @@ -281,10 +281,6 @@ void ndpi_search_steam(struct ndpi_detection_module_struct *ndpi_struct, struct return; } - /* skip marked packets */ - if(flow->detected_protocol_stack[0] == NDPI_PROTOCOL_STEAM) - return; - NDPI_LOG_DBG(ndpi_struct, "search STEAM\n"); ndpi_check_steam_http(ndpi_struct, flow); |