From 7ecf0c1b7fb926f8e5c7a49a4959d59509599cc9 Mon Sep 17 00:00:00 2001 From: Clément Bénier Date: Wed, 21 Nov 2018 18:31:51 +0100 Subject: onappid: retrieves the 'appid' with id field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the value of id field shoud be a string not an integer so {si} is replaced by {ss} Change-Id: Ief8a1e56295085cfe818301fd0073399a3ae6315 Signed-off-by: Clément Bénier --- src/afm-binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afm-binding.c b/src/afm-binding.c index 037c108..f4bba8a 100644 --- a/src/afm-binding.c +++ b/src/afm-binding.c @@ -244,7 +244,7 @@ static int onappid(afb_req_t req, const char *method, const char **appid) /* get the appid if any */ if (!wrap_json_unpack(json, "s", appid) - || !wrap_json_unpack(json, "{si}", _id_, appid)) { + || !wrap_json_unpack(json, "{ss}", _id_, appid)) { /* found */ INFO("method %s called for %s", method, *appid); return 1; -- cgit 1.2.3-korg