summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-01 09:55:57 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-09-05 18:37:25 +0200
commit6790479e981d885449777ed430f30ad5bf77aa45 (patch)
tree5b98f6b40bba99bf37883db6ff8fb07131c83a5e
parentec24e3d8779623dbddef97d8b8371609fdf81fa5 (diff)
afb-api-ws: Fix bug introduced by 2e83db0
Change-Id: Ia73d2d49ac888770f78d65a6258c0184b6aaa2da Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-api-ws.c2
1 files changed, 1 insertions, 1 deletions
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;
}