mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [07/15] incubator-mynewt-core git commit: BLE Host - Send correct SM err on confirm mismatch.
Date Tue, 14 Jun 2016 16:27:34 GMT
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/8957cf50
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8957cf50
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8957cf50

Branch: refs/heads/upf54
Commit: 8957cf506992325440cb1dd831f8f170fd886e7f
Parents: 137cf03
Author: Christopher Collins <ccollins@apache.org>
Authored: Fri Jun 10 10:09:15 2016 +0800
Committer: Christopher Collins <ccollins@apache.org>
Committed: Tue Jun 14 09:27:01 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/8957cf50/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;
         }


Mime
View raw message