From: Stotland, Inga Date: Mon, 11 Mar 2019 19:00:01 +0000 (-0700) Subject: mesh: Fix bug with adding more than one app key X-Git-Tag: accepted/tizen/unified/20191220.123149^2~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f26a50feea189ae3a027e14420de8bb168d58ea0;p=platform%2Fupstream%2Fbluez.git mesh: Fix bug with adding more than one app key Fixed problem where if the appKeys array already exists, that new add key requests were rejected. Change-Id: I416c2b2848ea15e53f9c2ddc168dc928d455466e Signed-off-by: Anupam Roy --- diff --git a/mesh/mesh-db.c b/mesh/mesh-db.c index db1ead4..0584c63 100644 --- a/mesh/mesh-db.c +++ b/mesh/mesh-db.c @@ -532,8 +532,6 @@ bool mesh_db_app_key_add(json_object *jobj, uint16_t net_idx, uint16_t app_idx, char buf[5]; json_object_object_get_ex(jobj, "appKeys", &jarray); - if (jarray) - return false; if (jarray) jentry = get_key_object(jarray, app_idx);