diff options
author | Florin Coras <fcoras@cisco.com> | 2019-08-27 15:13:35 -0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-03 15:11:24 +0000 |
commit | 09c91fe62775817a143a491ed999ddec30b8042b (patch) | |
tree | 8dea5ac6f9450a6dc9842ef535661c97c36ccf11 /src/vnet | |
parent | 591aa64e817429d51186861d9b410f747e300fae (diff) |
session: fix unbind coverity warning
Type:fix
Change-Id: If4fce6bd9b06ed545d72df847afd6a74cdefe042
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit eef61bb81a22f4c61c01e5afc8bd3b8612a71534)
Diffstat (limited to 'src/vnet')
-rwxr-xr-x | src/vnet/session/session_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index 8f9ce3f5a1e..c55aab33541 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -968,10 +968,17 @@ vl_api_unbind_sock_t_handler (vl_api_unbind_sock_t * mp) if ((rv = vnet_unlisten (a))) clib_warning ("unlisten returned: %d", rv); } + else + { + rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED; + } done: REPLY_MACRO (VL_API_UNBIND_SOCK_REPLY); + if (!app) + return; + app_wrk = application_get_worker (app, a->wrk_map_index); if (!app_wrk) return; |