vapi: fix uds connect error handling
Type: fix Change-Id: I846b54408991d34f73735914a4a673d4ee966afd Signed-off-by: Stanislav Zaikin <stanislav.zaikin@46labs.com>
This commit is contained in:
committed by
Dave Wallace
parent
fe403bd504
commit
af25b441e5
@@ -988,7 +988,7 @@ vapi_connect_ex (vapi_ctx_t ctx, const char *name, const char *path,
|
||||
|
||||
if (use_uds)
|
||||
{
|
||||
if (vapi_sock_client_connect (ctx, (char *) path, name) < 0)
|
||||
if (vapi_sock_client_connect (ctx, (char *) path, name) != VAPI_OK)
|
||||
{
|
||||
return VAPI_ECON_FAIL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user