diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-11-15 16:40:34 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-11-29 12:48:17 +0100 |
commit | e80c1a7ae27456d546e202b1c498e9337d42ce14 (patch) | |
tree | 12ba9838d5dbc16da0ef46239080e10abf95c185 /src/afb-xreq.c | |
parent | b4da3b7f3db2211e7ecca74301e26b3089fda5a2 (diff) |
Use afb_token in contexts
Tokens are now object used in the context.
Bug-AGL: SPEC-2968
Change-Id: I107d31732202b7b1172afaf09f3a52470f050d7c
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-xreq.c')
-rw-r--r-- | src/afb-xreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-xreq.c b/src/afb-xreq.c index 85427419..7621b801 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -320,7 +320,7 @@ static struct json_object *xreq_get_client_info_cb(struct afb_req_x2 *closure) json_object_object_add(r, "id", json_object_new_string(xreq->cred->id)); } if (xreq->context.session) { - json_object_object_add(r, "uuid", json_object_new_string(afb_context_uuid(&xreq->context))); + json_object_object_add(r, "uuid", json_object_new_string(afb_context_uuid(&xreq->context)?:"")); json_object_object_add(r, "LOA", json_object_new_int(afb_context_get_loa(&xreq->context))); } return r; |