diff --git a/subsys/bluetooth/mesh/pb_adv.c b/subsys/bluetooth/mesh/pb_adv.c index 86f20497704f3..57a7c16b4f8c1 100644 --- a/subsys/bluetooth/mesh/pb_adv.c +++ b/subsys/bluetooth/mesh/pb_adv.c @@ -515,7 +515,7 @@ static void gen_prov_cont(struct prov_rx *rx, struct net_buf_simple *buf) return; } - if (seg > link.rx.last_seg) { + if (seg > link.rx.last_seg || seg == 0) { LOG_ERR("Invalid segment index %u", seg); prov_failed(PROV_ERR_NVAL_FMT); return;