summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/in2out_ed.c
diff options
context:
space:
mode:
authorAlexander Chernavin <achernavin@netgate.com>2020-05-14 03:35:47 -0400
committerOle Trøan <otroan@employees.org>2020-05-14 12:08:43 +0000
commit88120824acc299a0aec17ce4c208dbc8be394779 (patch)
treed4575d5ed919152b7ad638043206b110ee097c58 /src/plugins/nat/in2out_ed.c
parentdbd366b239c0506b0d9984e7481967e038f10a23 (diff)
nat: fix segv if out of ports in ed mode
Type: fix Change-Id: Ife726d2f6baaa3516c209011183f39670cf6a55d Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Diffstat (limited to 'src/plugins/nat/in2out_ed.c')
-rw-r--r--src/plugins/nat/in2out_ed.c1
1 files changed, 0 insertions, 1 deletions
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;
}