diff options
author | 2018-01-31 14:52:08 +0100 | |
---|---|---|
committer | 2018-01-31 14:57:21 +0100 | |
commit | 3535d4cb73628c720da1bf74627ded2aec6f2ca1 (patch) | |
tree | 2d73036739d0bbc9877131548b156640c9676fb5 /src/afb-api-so-v2.c | |
parent | 379b11154f301a30e79154c0af1ef1f257149efa (diff) |
afb-api: Enforce api names to be hookable
Change-Id: Ic1d5cb208c636d3261e1a96c4a81b488cb84a60e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v2.c')
-rw-r--r-- | src/afb-api-so-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c index ba53223f..5954eb11 100644 --- a/src/afb-api-so-v2.c +++ b/src/afb-api-so-v2.c @@ -230,7 +230,7 @@ int afb_api_so_v2_add(const char *path, void *handle, struct afb_apiset *apiset) ERROR("binding [%s] bad api name...", path); goto error; } - if (!afb_api_is_valid_name(binding->api)) { + if (!afb_api_is_valid_name(binding->api, 1)) { ERROR("binding [%s] invalid api name...", path); goto error; } |