From 88120824acc299a0aec17ce4c208dbc8be394779 Mon Sep 17 00:00:00 2001 From: Alexander Chernavin Date: Thu, 14 May 2020 03:35:47 -0400 Subject: nat: fix segv if out of ports in ed mode Type: fix Change-Id: Ife726d2f6baaa3516c209011183f39670cf6a55d Signed-off-by: Alexander Chernavin --- src/plugins/nat/in2out_ed.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/plugins/nat/in2out_ed.c') diff --git a/src/plugins/nat/in2out_ed.c b/src/plugins/nat/in2out_ed.c index 45d9fd0b32c..0f1500f5e06 100644 --- a/src/plugins/nat/in2out_ed.c +++ b/src/plugins/nat/in2out_ed.c @@ -386,7 +386,6 @@ slow_path_ed (snat_main_t * sm, { nat_elog_notice ("addresses exhausted"); b->error = node->errors[NAT_IN2OUT_ED_ERROR_OUT_OF_PORTS]; - nat_free_session_data (sm, s, thread_index, 0); nat_ed_session_delete (sm, s, thread_index, 1); return NAT_NEXT_DROP; } -- cgit 1.2.3-korg