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/12/13 03:08:45 UTC

[6/9] incubator-mynewt-core git commit: nimble/sm: Fix obvious array size mismatch

nimble/sm: Fix obvious array size 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/838b53a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/838b53a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/838b53a5

Branch: refs/heads/develop
Commit: 838b53a5c4712269edf3b747992fb8befa38412a
Parents: a034ac1
Author: Andrzej Kaczmarek <an...@codecoup.pl>
Authored: Tue Nov 29 11:31:01 2016 +0100
Committer: Andrzej Kaczmarek <an...@codecoup.pl>
Committed: Mon Dec 12 23:58:47 2016 +0100

----------------------------------------------------------------------
 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/838b53a5/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 f42a54e..a49c3d2 100644
--- a/net/nimble/host/src/ble_sm.c
+++ b/net/nimble/host/src/ble_sm.c
@@ -498,7 +498,7 @@ ble_sm_persist_keys(struct ble_sm_proc *proc)
 {
     struct ble_store_value_sec value_sec;
     struct ble_hs_conn *conn;
-    uint8_t peer_addr[8];
+    uint8_t peer_addr[6];
     uint8_t peer_addr_type;
     int authenticated;