From 755f836d4dea09ea98f27f2328849d37e340a731 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Wed, 16 Oct 2019 15:11:22 +0200 Subject: session: fix use-after-free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: fix Change-Id: Ie63b80db56febc8a16bafcdd5399b2f92b6aa437 Signed-off-by: Benoît Ganne (cherry picked from commit 94d2da0b294b0084dd97217e79de18842f09356b) --- src/vnet/session/mma_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/session') diff --git a/src/vnet/session/mma_template.c b/src/vnet/session/mma_template.c index e66f2919720..ae730e5dbea 100644 --- a/src/vnet/session/mma_template.c +++ b/src/vnet/session/mma_template.c @@ -60,8 +60,8 @@ RTT (mma_rule) * RT (mma_rules_table_rule_alloc) (RTT (mma_rules_table) * srt) RTT (mma_rule) * RT (mma_rule_free) (RTT (mma_rules_table) * srt, RTT (mma_rule) * rule) { - pool_put (srt->rules, rule); clib_memset (rule, 0xfa, sizeof (*rule)); + pool_put (srt->rules, rule); return rule; } -- cgit 1.2.3-korg