If processing failed for a Config Model Subscription Virtual Address
Add/Delete/Overwrite message, the address field in the status reply
should be set to zero. See MshPRFv1.0.1 section 4.4.1.2.8.
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
label, true, addr, opcode))
msg[n] = MESH_STATUS_STORAGE_FAIL;
+ /* If processing failed, set addr field to zero in reply */
+ if (msg[n] != MESH_STATUS_SUCCESS)
+ addr = UNASSIGNED_ADDRESS;
+
l_put_le16(ele_addr, msg + n + 1);
l_put_le16(addr, msg + n + 3);