mesh: Rearrange PB-ACK for possible session close
authorBrian Gix <brian.gix@intel.com>
Tue, 3 Dec 2019 21:04:09 +0000 (13:04 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 20:51:03 +0000 (02:21 +0530)
commit3f08911d3eeb50c30227b78f9dfa7415fc3d75ef
treeb5423a0ddb5ccb6da913ffd04a91ae7406b965f3
parenta493c735374104fb87d222f138bc0f79532de0f8
mesh: Rearrange PB-ACK for possible session close

In certain circumstances, reception of PB-ADV messages may trigger
session close. This rearrange ACKs new verified messages before
performing call-back to avoid situations where the session no longer
exists after the message has been handled.

This caused static analysis errors during provisioning, which are now
addressed.

Change-Id: I272e8066f307374c848cb78326259b49acaf4e20
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/net.c
mesh/pb-adv.c