diff options
Diffstat (limited to 'src/plugins/hs_apps')
-rw-r--r-- | src/plugins/hs_apps/sapi/vpp_echo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo.c b/src/plugins/hs_apps/sapi/vpp_echo.c index 0550006f949..560c6a85f3d 100644 --- a/src/plugins/hs_apps/sapi/vpp_echo.c +++ b/src/plugins/hs_apps/sapi/vpp_echo.c @@ -498,6 +498,8 @@ session_unlisten_handler (session_unlisten_reply_msg_t * mp) echo_main_t *em = &echo_main; ls = echo_get_session_from_handle (em, mp->handle); + if (!ls) + return; em->proto_cb_vft->cleanup_cb (ls, 0 /* parent_died */ ); ls->session_state = ECHO_SESSION_STATE_CLOSED; if (--em->listen_session_cnt == 0) |