You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2018/12/06 07:15:06 UTC
[mynewt-nimble] branch master updated: nimble/ll: Fix regression on
legacy connect
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 0644723 nimble/ll: Fix regression on legacy connect
0644723 is described below
commit 0644723fa7195b0a40c254da9ee5295d45694c7d
Author: Ćukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Thu Dec 6 08:13:13 2018 +0100
nimble/ll: Fix regression on legacy connect
Without this patch we will get assert on legacy connect
---
nimble/controller/src/ble_ll_conn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index 3c407c5..c960e72 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -2940,7 +2940,7 @@ ble_ll_init_rx_pkt_in(uint8_t pdu_type, uint8_t *rxbuf,
* Let's take the reference for handover to LL.
* There shall be one more, if not something went very wrong
*/
- if (!ble_ll_scan_aux_data_unref(aux_data)) {
+ if (aux_data && !ble_ll_scan_aux_data_unref(aux_data)) {
BLE_LL_ASSERT(0);
}