diff options
author | Florin Coras <fcoras@cisco.com> | 2022-03-14 21:17:25 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-22 15:14:25 +0000 |
commit | 6bd8d3fbba74f8f80a0c09f87c6cbfddd054042f (patch) | |
tree | 51e5c3c09b6ad5b8dcd2fa77df3fb9a3dc3e7289 /src/plugins | |
parent | b1c0b9afacb12e8255681db25a01b94f25fed89e (diff) |
session: use safe realloc for pools
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I313c916d268c4b2b448b93e90bc67da341b803e3
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/hsi/hsi.c | 8 |
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 * |