From 6790479e981d885449777ed430f30ad5bf77aa45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 1 Sep 2017 09:55:57 +0200 Subject: [PATCH] afb-api-ws: Fix bug introduced by 2e83db0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ia73d2d49ac888770f78d65a6258c0184b6aaa2da Signed-off-by: José Bollo --- src/afb-api-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.16.6