X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-ws.c;h=0022d52668045f0a192b3e8b2fed8c8ce8dec8fa;hb=6790479e981d885449777ed430f30ad5bf77aa45;hp=1bd107118278975354a421ee1bee3577149e4cba;hpb=ec24e3d8779623dbddef97d8b8371609fdf81fa5;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-ws.c b/src/afb-api-ws.c index 1bd10711..0022d526 100644 --- a/src/afb-api-ws.c +++ b/src/afb-api-ws.c @@ -325,7 +325,7 @@ int afb_api_ws_add_server(const char *path, struct afb_apiset *apiset) goto error; /* check api name */ - if (afb_apiset_has(apiset, apiws->api, 1)) { + if (!afb_apiset_lookup(apiset, apiws->api, 1)) { ERROR("Can't provide ws-server for %s: API %s doesn't exist", path, apiws->api); goto error2; }