summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/mma_template.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-16 15:11:22 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-10-16 15:03:41 +0000
commit94d2da0b294b0084dd97217e79de18842f09356b (patch)
treeb782127a2dc34a088e77eda412bf7adc77a6ae07 /src/vnet/session/mma_template.c
parent6ed154f779c765f38b61ed84349bd539287dd02b (diff)
session: fix use-after-free
Type: fix Change-Id: Ie63b80db56febc8a16bafcdd5399b2f92b6aa437 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/session/mma_template.c')
-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;
}