From 12c52e56038b7cdb9c1f64b227136f1f0ed3247e Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 24 Jun 2019 17:14:37 -0700 Subject: 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 --- binding/bluetooth-map-api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit 1.2.3-korg