From: José Bollo Date: Fri, 1 Sep 2017 07:55:57 +0000 (+0200) Subject: afb-api-ws: Fix bug introduced by 2e83db0 X-Git-Tag: eel/4.99.1~25 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=6790479e981d885449777ed430f30ad5bf77aa45 afb-api-ws: Fix bug introduced by 2e83db0 Change-Id: Ia73d2d49ac888770f78d65a6258c0184b6aaa2da Signed-off-by: José Bollo --- 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; }