forked from espressif/esp-idf
fix(ble_mesh): fixed proxy server might send segment message with incorrect format
refer commit: 7738bca124
This commit is contained in:
@@ -1059,7 +1059,7 @@ static int proxy_segment_and_send(struct bt_mesh_conn *conn, uint8_t type,
|
||||
net_buf_simple_pull(msg, mtu);
|
||||
|
||||
while (msg->len) {
|
||||
if (msg->len + 1 < mtu) {
|
||||
if (msg->len + 1 <= mtu) {
|
||||
net_buf_simple_push_u8(msg, PDU_HDR(SAR_LAST, type));
|
||||
proxy_send(conn, msg->data, msg->len);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user