session: fix unbind coverity warning
Type:fix Change-Id: If4fce6bd9b06ed545d72df847afd6a74cdefe042 Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:
committed by
Damjan Marion
parent
50059cca89
commit
eef61bb81a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user