diff options
Diffstat (limited to 'src/plugins/nat/out2in_ed.c')
-rw-r--r-- | src/plugins/nat/out2in_ed.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/nat/out2in_ed.c b/src/plugins/nat/out2in_ed.c index a81d58e2fa8..cb1cbdad375 100644 --- a/src/plugins/nat/out2in_ed.c +++ b/src/plugins/nat/out2in_ed.c @@ -29,6 +29,7 @@ #include <nat/nat_ipfix_logging.h> #include <nat/nat_reass.h> #include <nat/nat_inlines.h> +#include <nat/nat44_inlines.h> #include <nat/nat_syslog.h> #include <nat/nat_ha.h> @@ -203,6 +204,8 @@ create_session_for_static_mapping_ed (snat_main_t * sm, snat_session_key_t eh_key; nat44_is_idle_session_ctx_t ctx; + nat44_session_try_cleanup (&l_key.addr, l_key.fib_index, thread_index, now); + if (PREDICT_FALSE (maximum_sessions_exceeded (sm, thread_index))) { b->error = node->errors[NAT_OUT2IN_ED_ERROR_MAX_SESSIONS_EXCEEDED]; |