aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/hsi/hsi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/hsi/hsi.c b/src/plugins/hsi/hsi.c
index bfdb3a07fc2..9382a94de56 100644
--- a/src/plugins/hsi/hsi.c
+++ b/src/plugins/hsi/hsi.c
@@ -85,13 +85,7 @@ hsi_udp_lookup (vlib_buffer_t *b, void *ip_hdr, u8 is_ip4)
hdr->dst_port, hdr->src_port, TRANSPORT_PROTO_UDP);
}
- if (s)
- {
- session_pool_remove_peeker (s->thread_index);
- return 1;
- }
-
- return 0;
+ return s ? 1 : 0;
}
always_inline transport_connection_t *