[PATCH BlueZ v2] mesh: Fix bug with adding more than one app key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed problem where if the appKeys array already exists, that new add
key requests were rejected.
---
 mesh/mesh-db.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mesh/mesh-db.c b/mesh/mesh-db.c
index 2dc13cd65..d5d19d52f 100644
--- a/mesh/mesh-db.c
+++ b/mesh/mesh-db.c
@@ -533,8 +533,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);
-- 
2.14.5




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux