diff options
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/application_worker.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index 8e3ba35013a..f9740a300c2 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -503,15 +503,16 @@ app_worker_own_session (app_worker_t * app_wrk, session_t * s) } int -app_worker_connect_session (app_worker_t * app, session_endpoint_t * sep, +app_worker_connect_session (app_worker_t * app_wrk, session_endpoint_t * sep, u32 api_context) { int rv; /* Make sure we have a segment manager for connects */ - app_worker_alloc_connects_segment_manager (app); + if (app_worker_alloc_connects_segment_manager (app_wrk)) + return SESSION_E_ALLOC; - if ((rv = session_open (app->wrk_index, sep, api_context))) + if ((rv = session_open (app_wrk->wrk_index, sep, api_context))) return rv; return 0; |