nat: fix segv if out of ports in ed mode
[vpp.git] / src / plugins / nat / in2out_ed.c
index 45d9fd0..0f1500f 100644 (file)
@@ -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;
        }