BLE Host - Fix unit test SIGSEGV.

An array was missing a '0' terminator.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/8cecd61d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8cecd61d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8cecd61d

Branch: refs/heads/sterly_refactor
Commit: 8cecd61dfd5aa38a68bd508ed8f077b9288cca9a
Parents: 004d61d
Author: Christopher Collins <[email protected]>
Authored: Sun Aug 7 18:13:26 2016 -0700
Committer: Sterling Hughes <[email protected]>
Committed: Tue Aug 9 16:05:21 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/test/ble_hs_test_util.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8cecd61d/net/nimble/host/src/test/ble_hs_test_util.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/test/ble_hs_test_util.c 
b/net/nimble/host/src/test/ble_hs_test_util.c
index 460642e..30926b6 100644
--- a/net/nimble/host/src/test/ble_hs_test_util.c
+++ b/net/nimble/host/src/test/ble_hs_test_util.c
@@ -802,6 +802,9 @@ ble_hs_test_util_set_our_irk(const uint8_t *irk, int 
fail_idx,
             BLE_HS_TEST_UTIL_LE_OPCODE(BLE_HCI_OCF_LE_ADD_RESOLV_LIST),
             ble_hs_test_util_exp_hci_status(3, fail_idx, hci_status),
         },
+        {
+            0
+        }
     }));
 
     rc = ble_hs_pvcy_set_our_irk(irk);

Reply via email to