Bluetooth: Mesh: Check model publish pointer before dereferencing
Moves the if !(pub) check to happen before it gets used in the
initialization of the message context in bt_mesh_model_publish.
Fixes #5116.
Signed-off-by:
Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
Loading
Please sign in to comment