mesh: Fix app payload decryption for virtual labels 38/228938/1
authorInga Stotland <inga.stotland@intel.com>
Tue, 18 Feb 2020 19:30:10 +0000 (11:30 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Thu, 26 Mar 2020 10:27:14 +0000 (15:57 +0530)
commitde5a15c2ab09f6130bd362322e3e6cafc6deb8e8
tree4ea492e57563f79ca0e5510d5d69088f28a6ad02
parent52597472b5dc1d349956ad1db9206069ee399e49
mesh: Fix app payload decryption for virtual labels

This fixes a bug when a virtual label and its size hasn't been passed
to a decryption function: instead of always using NULL pointer for
label and 0 for lable size, use actual virtual label info if decrypting
a payload addressed to a virtual destination.

Change-Id: Ica8abfd453aa4085998c00725f4bf23146d9a5dd
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/model.c