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:53 UTC

[31/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Send correct SM err on confirm mismatch.

BLE Host - Send correct SM err on confirm mismatch.


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

Branch: refs/heads/develop
Commit: c72b6b4c04aa9437230e825df30622e8814d2236
Parents: 8451946
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Jun 10 10:09:15 2016 +0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Jun 14 19:23:39 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c72b6b4c/net/nimble/host/src/ble_sm_sc.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_sm_sc.c b/net/nimble/host/src/ble_sm_sc.c
index c16d20d..c3a2666 100644
--- a/net/nimble/host/src/ble_sm_sc.c
+++ b/net/nimble/host/src/ble_sm_sc.c
@@ -372,7 +372,7 @@ ble_sm_sc_random_rx(struct ble_sm_proc *proc, struct ble_sm_result *res)
         if (memcmp(proc->confirm_peer, confirm_val, 16) != 0) {
             /* Random number mismatch. */
             res->app_status = BLE_HS_SM_US_ERR(BLE_SM_ERR_CONFIRM_MISMATCH);
-            res->sm_err = BLE_SM_ERR_UNSPECIFIED;
+            res->sm_err = BLE_SM_ERR_CONFIRM_MISMATCH;
             res->enc_cb = 1;
             return;
         }