rv = parse_uri (a->uri, &sep);
if (rv)
return rv;
- clib_memcpy (&a->sep, &sep, sizeof (sep));
+ clib_memcpy (&a->sep_ext, &sep, sizeof (sep));
return vnet_bind_i (a);
}
if (rv)
return clib_error_return_code (0, rv, 0, "app init: %d", rv);
- clib_memcpy (&a->sep, &sep, sizeof (sep));
+ clib_memcpy (&a->sep_ext, &sep, sizeof (sep));
if ((rv = application_connect (a)))
return clib_error_return_code (0, rv, 0, "connect failed");
return 0;
goto done;
}
+ /* Make coverity happy */
+ ASSERT (args.evt_q && args.segment);
+
/* Send fifo segment fd if needed */
if (ssvm_type (args.segment) == SSVM_SEGMENT_MEMFD)
{
int rv = 0;
mp = (session_disconnected_msg_t *) data;
- s = session_get_from_handle_if_valid (mp->handle);
+ if (!(s = session_get_from_handle_if_valid (mp->handle)))
+ {
+ clib_warning ("could not disconnect handle %llu", mp->handle);
+ return;
+ }
app_wrk = app_worker_get (s->app_wrk_index);
app = application_lookup (mp->client_index);
- if (!(app_wrk && s && app->app_index == app_wrk->app_index))
+ if (!(app_wrk && app && app->app_index == app_wrk->app_index))
{
- clib_warning ("could not disconnect session: %llu app_wrk: %u",
+ clib_warning ("could not disconnect session: %llu app: %u",
mp->handle, mp->client_index);
return;
}