You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/06/15 02:27:38 UTC

[16/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Reject SMP opcode 15.

BLE Host - Reject SMP opcode 15.


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/a481a840
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a481a840
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a481a840

Branch: refs/heads/develop
Commit: a481a840bb8efca9abc5f3472b6835e7afa8464e
Parents: af67329
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Jun 8 15:02:49 2016 +0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Jun 14 19:23:35 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/ble_sm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a481a840/net/nimble/host/src/ble_sm.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_sm.c b/net/nimble/host/src/ble_sm.c
index aecf98a..d15960c 100644
--- a/net/nimble/host/src/ble_sm.c
+++ b/net/nimble/host/src/ble_sm.c
@@ -397,7 +397,7 @@ ble_sm_proc_set_timer(struct ble_sm_proc *proc)
 static ble_sm_rx_fn *
 ble_sm_dispatch_get(uint8_t op)
 {
-    if (op > sizeof ble_sm_dispatch / sizeof ble_sm_dispatch[0]) {
+    if (op >= sizeof ble_sm_dispatch / sizeof ble_sm_dispatch[0]) {
         return NULL;
     }