summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-16 15:11:22 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-27 10:10:14 +0000
commit755f836d4dea09ea98f27f2328849d37e340a731 (patch)
tree88d06c9c1992827565fda42beefde258e4c16ada /src/vnet
parent461100061fcc3551bef2b2ddb4b8deeb41625bd1 (diff)
session: fix use-after-free
Type: fix Change-Id: Ie63b80db56febc8a16bafcdd5399b2f92b6aa437 Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit 94d2da0b294b0084dd97217e79de18842f09356b)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/mma_template.c2
1 files changed, 1 insertions, 1 deletions
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;
}