X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-svc.c;h=59e775cd897000203e7efbf4bd98092f0d6e3d96;hb=5d248158cc380d0a164fa56b46a7bdede4115407;hp=93e85533856b0a9df4f41c2531242adab31105ff;hpb=0b838a6101edc810098ee0645d3bfd966096ae07;p=src%2Fapp-framework-binder.git diff --git a/src/afb-svc.c b/src/afb-svc.c index 93e85533..59e775cd 100644 --- a/src/afb-svc.c +++ b/src/afb-svc.c @@ -27,7 +27,7 @@ #include "afb-session.h" #include "afb-context.h" #include "afb-evt.h" -#include "afb-subcall.h" +#include "afb-msg-json.h" #include "afb-svc.h" #include "afb-xreq.h" #include "afb-apis.h" @@ -228,7 +228,8 @@ static void svc_call(void *closure, const char *api, const char *verb, struct js if (svcreq == NULL) { ERROR("out of memory"); json_object_put(args); - return afb_subcall_internal_error(callback, cbclosure); + callback(cbclosure, 1, afb_msg_json_internal_error()); + return; } /* initialises the request */