You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/10/31 10:22:20 UTC

[GitHub] andrzej-kaczmarek closed pull request #233: fix length comparison bug

andrzej-kaczmarek closed pull request #233: fix length comparison bug
URL: https://github.com/apache/mynewt-nimble/pull/233
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nimble/host/src/ble_hs_dbg.c b/nimble/host/src/ble_hs_dbg.c
index a03bfe88..e472ab0d 100644
--- a/nimble/host/src/ble_hs_dbg.c
+++ b/nimble/host/src/ble_hs_dbg.c
@@ -675,7 +675,7 @@ ble_hs_dbg_event_disp(uint8_t *evbuf)
         ble_hs_dbg_num_comp_pkts_disp(evdata, len);
         break;
     case BLE_HCI_EVCODE_LE_META:
-        ble_hs_dbg_le_event_disp(evdata[0], len, evdata + 1);
+        ble_hs_dbg_le_event_disp(evdata[0], len-1, evdata + 1);
         break;
     case BLE_HCI_EVCODE_AUTH_PYLD_TMO:
         ble_hs_dbg_auth_pyld_tmo_disp(evdata, len);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services