summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-07-29 11:48:00 +0200
committerJose Bollo <jose.bollo@iot.bzh>2019-07-29 12:00:43 +0200
commit0abe8de32bef957b2f72eee7c7eb30c3a9a9efeb (patch)
treec83f5758caeebc24dc06b616e555b234782e389a
parentad66a4685f5d50ef05338157c84a572088693ed3 (diff)
Fix detection of error in call synchronous
There fixes a bug with an inversion between info and error in implementation of synchronous calls, leading to bad detection of errors. Bug-AGL: SPEC-2697 Change-Id: I30a8cd9c45a91b442f6c501dd3b0c32cd3ea632d Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-calls.c b/src/afb-calls.c
index 840e3eab..72be918d 100644
--- a/src/afb-calls.c
+++ b/src/afb-calls.c
@@ -345,7 +345,7 @@ static int do_sync(
afb_xreq_unhooked_unref(&callreq->xreq);
interr:
- return store_reply(NULL, _internal_error_, NULL, object, info, error);
+ return store_reply(NULL, _internal_error_, NULL, object, error, info);
}
/******************************************************************************/