diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-10-25 10:18:25 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-25 10:18:25 +0200 |
commit | d268229191ad11f0fd2534517a89422c1bb8e02c (patch) | |
tree | 4c610f4e5dcc9b615282c0427870cd7b3aa9cc6e /ll-database-binding/src | |
parent | c0b15b4346418b9ef02508dadfd3a75ae2b57d36 (diff) |
database: Handle UNKNOWN-APP!
Change-Id: I850465cb233792a617ef27acf0228665e873226c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'll-database-binding/src')
-rw-r--r-- | ll-database-binding/src/ll-database-binding.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ll-database-binding/src/ll-database-binding.c b/ll-database-binding/src/ll-database-binding.c index ae0003b..c0fa939 100644 --- a/ll-database-binding/src/ll-database-binding.c +++ b/ll-database-binding/src/ll-database-binding.c @@ -150,6 +150,10 @@ static int get_key(struct afb_req req, DBT *key) /* get the appid */ appid = afb_req_get_application_id(req); +#if 1 + if (!appid) + appid = strdup("#UNKNOWN-APP#"); +#endif if (!appid) { afb_req_fail(req, "bad-context", NULL); |