mesh: Fix clean-up introduced bug
authorBrian Gix <brian.gix@intel.com>
Mon, 8 Jun 2020 23:07:45 +0000 (16:07 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Fri, 18 Dec 2020 05:40:30 +0000 (11:10 +0530)
commit556638c86f48e6a7726d5ff691c6a2d1855066e4
tree7f872d03e57196f602f191f2fec42bca3b11e74b
parentd5fe689ddcbf5953f08f3e95af059dab4e276a62
mesh: Fix clean-up introduced bug

Before the clean-up we were making a useless check of an otherwise
unused boolean (net->provisioner) to determine if we should decode with
device keys (which was incorrect). This was replaced by a check the
node type (node->provisioner). However, the check was incorrect in the
first place, and prevents provisioner nodes from decrypting non device
key messages.

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