diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-05 13:18:21 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-05 13:18:21 +0200 |
commit | efe18167d6ce59b263c179a6e2d01aa875c05cf8 (patch) | |
tree | e3e5f9c9f6d0c9d131503a6b54f608f9fbfcf2a1 /src | |
parent | 677717c5c86f107b2d196d70796a9be7db3532df (diff) |
fix context values
Change-Id: I8a904fe7e0e895854729ae852b63c090f6c5bb5f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r-- | src/afb-apis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/afb-apis.c b/src/afb-apis.c index 8dfac519..55e68c93 100644 --- a/src/afb-apis.c +++ b/src/afb-apis.c @@ -367,9 +367,8 @@ int afb_apis_handle(struct afb_req req, struct AFB_clientCtx *context, const cha v = a->plugin->apis; for (j = 0 ; v->name ; j++, v++) { if (!strncasecmp(v->name, verb, lenverb) && !v->name[lenverb]) { - req.context = context->contexts[i]; + req.context = &context->contexts[i]; handle(req, v); - context->contexts[i] = req.context; return 1; } } |