mesh: Allow deleting non-existing net key
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Thu, 6 Aug 2020 14:21:08 +0000 (16:21 +0200)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commite1af0efd6fbe75042f10fab7c9c33fd738d09ad7
tree36be445adbc98b42475872791a69530bf480de07
parent6ae0cb4e24ee1f4f9c4f4c02df0a917c0fdf512d
mesh: Allow deleting non-existing net key

When deleting a non-existing key, first check that it doesn't exist (and
return success), then verify it's not the last key we have.

Change-Id: I70f686bb3ab175270d6d4cb4059d7408ff34ec49
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/net.c