Merge branch 'bugfix/ble_mesh_rework_prov_pdu_len_check_v4.2' into 'release/v4.2'

ble_mesh: Rework prov pdu length check (v4.2)

See merge request espressif/esp-idf!9002
This commit is contained in:
Island 2020-06-03 15:10:33 +08:00
commit 118b69ce0d
2 changed files with 2 additions and 2 deletions

View File

@ -1546,7 +1546,7 @@ static void gen_prov_start(struct prov_rx *rx, struct net_buf_simple *buf)
if (link.rx.buf->len > link.rx.buf->size) {
BT_ERR("%s, Too large provisioning PDU (%u bytes)",
__func__, link.rx.buf->len);
/* Zephyr uses prov_send_fail_msg() here */
prov_send_fail_msg(PROV_ERR_NVAL_FMT);
return;
}

View File

@ -3039,7 +3039,7 @@ static void gen_prov_start(const u8_t idx, struct prov_rx *rx, struct net_buf_si
if (link[idx].rx.buf->len > link[idx].rx.buf->size) {
BT_ERR("%s, Too large provisioning PDU (%u bytes)",
__func__, link[idx].rx.buf->len);
// close_link(i, CLOSE_REASON_FAILED);
close_link(idx, CLOSE_REASON_FAILED);
return;
}