summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-27 22:56:30 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-28 17:11:35 -0800
commit91ece8baeded654a45a0a3da609a99fcdf65b018 (patch)
tree78fe8caba4742309fe96e3bb47e210d7fe956a95
parentffa4b099f5c70aee02bdc041239793f126a78ec4 (diff)
To avoid calling afb_req_success after failure return after the afb_req_fail call in contacts verb. Bug-AGL: SPEC-2630 Change-Id: I2d521d7c04a4be7dd49e8a63cf1ac267de636de8 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--binding/bluetooth-pbap-binding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binding/bluetooth-pbap-binding.c b/binding/bluetooth-pbap-binding.c
index e2f5c55..2ed2fd1 100644
--- a/binding/bluetooth-pbap-binding.c
+++ b/binding/bluetooth-pbap-binding.c
@@ -370,6 +370,7 @@ void contacts(afb_req_t request)
jresp = json_tokener_parse(cached);
} else {
afb_req_fail(request, "no imported contacts", NULL);
+ return;
}
afb_req_success(request, jresp, "contacts");