aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/telnet.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-08-05 15:15:45 +0200
committerGitHub <noreply@github.com>2022-08-05 15:15:45 +0200
commit1d4e27c4739f74ccef19fde7e6008d725ea93a69 (patch)
treeda0d6d7c177488752834482e61c6d802d3d79f82 /src/lib/protocols/telnet.c
parentc0732eda45884de91e0c221e9dd23eeec364bf68 (diff)
Further simplification of `ndpi_process_extra_packet()` (#1698)
See 95e16872. After c0732eda, we can safely remove the protocol list from `ndpi_process_extra_packet()`. The field `flow->check_extra_packets` is redundant; remove it.
Diffstat (limited to 'src/lib/protocols/telnet.c')
-rw-r--r--src/lib/protocols/telnet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/protocols/telnet.c b/src/lib/protocols/telnet.c
index d3ec02958..ed0808596 100644
--- a/src/lib/protocols/telnet.c
+++ b/src/lib/protocols/telnet.c
@@ -132,8 +132,6 @@ static void ndpi_int_telnet_add_connection(struct ndpi_detection_module_struct
*ndpi_struct, struct ndpi_flow_struct *flow) {
flow->guessed_host_protocol_id = flow->guessed_protocol_id = NDPI_PROTOCOL_TELNET;
- /* This is necessary to inform the core to call this dissector again */
- flow->check_extra_packets = 1;
flow->max_extra_packets_to_check = 64;
flow->extra_packets_func = search_telnet_again;