diff options
Diffstat (limited to 'src/scvpp/src/comm.c')
-rw-r--r-- | src/scvpp/src/comm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scvpp/src/comm.c b/src/scvpp/src/comm.c index 532ee1e..b679880 100644 --- a/src/scvpp/src/comm.c +++ b/src/scvpp/src/comm.c @@ -32,6 +32,10 @@ int sc_connect_vpp() if (g_vapi_ctx == NULL) { vapi_error_e rv = vapi_ctx_alloc(&g_vapi_ctx); + if (rv != VAPI_OK) { + g_vapi_ctx = NULL; + return -1; + } rv = vapi_connect(g_vapi_ctx, APP_NAME, NULL, MAX_OUTSTANDING_REQUESTS, RESPONSE_QUEUE_SIZE, VAPI_MODE_BLOCKING, true); |