diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-06-24 17:14:37 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-06-24 17:19:06 -0700 |
commit | 12c52e56038b7cdb9c1f64b227136f1f0ed3247e (patch) | |
tree | e69aee01756e934dc435e215d8dc1fef8821d2a9 /binding | |
parent | 30b84ed96f8fc03fc5a73bbe97a86d76899ab8cc (diff) |
binding: bluetooth-map: strlen check for folder name
Don't populate message listing for list_messsages verb with no
folder name.
Bug-AGL: SPEC-2512
Change-Id: I881e6f4a59bef9e7f60f2b06cf280e96077ad718
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r-- | binding/bluetooth-map-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c index 3d75bf4..e09b120 100644 --- a/binding/bluetooth-map-api.c +++ b/binding/bluetooth-map-api.c @@ -471,7 +471,7 @@ static void list_msgs(afb_req_t request) gchar *session; folder = afb_req_value(request, "folder"); - if (!folder) { + if (!folder || !strlen(folder)) { afb_req_fail_f(request, "failed", "no folder value passed"); return; } |