Code Review
/
apps
/
agl-service-data-persistence.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
c0b15b4
)
database: Handle UNKNOWN-APP!
author
José Bollo
<jose.bollo@iot.bzh>
Wed, 25 Oct 2017 08:18:25 +0000
(10:18 +0200)
committer
José Bollo
<jose.bollo@iot.bzh>
Wed, 25 Oct 2017 08:18:25 +0000
(10:18 +0200)
Change-Id: I850465cb233792a617ef27acf0228665e873226c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
ll-database-binding/src/ll-database-binding.c
patch
|
blob
|
history
diff --git
a/ll-database-binding/src/ll-database-binding.c
b/ll-database-binding/src/ll-database-binding.c
index
ae0003b
..
c0fa939
100644
(file)
--- 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);
/* 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);
if (!appid)
{
afb_req_fail(req, "bad-context", NULL);