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/07 14:41:12 UTC
[05/12] incubator-mynewt-core git commit: BLE Host - Fix for
encryption key refresh.
BLE Host - Fix for encryption key refresh.
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/a056e9f7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a056e9f7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a056e9f7
Branch: refs/heads/upf54
Commit: a056e9f702e35e218729b6aa9433c83dd5535d0d
Parents: d9b89ec
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Jun 7 07:59:54 2016 +0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Jun 7 22:40:09 2016 +0800
----------------------------------------------------------------------
net/nimble/host/src/ble_sm.c | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a056e9f7/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 72c891c..f4b384b 100644
--- a/net/nimble/host/src/ble_sm.c
+++ b/net/nimble/host/src/ble_sm.c
@@ -991,6 +991,8 @@ ble_sm_enc_key_refresh_rx(struct hci_encrypt_key_refresh *evt)
struct ble_sm_proc *proc;
int do_key_exchange;
+ memset(&res, 0, sizeof res);
+
ble_hs_lock();
proc = ble_sm_proc_find(evt->connection_handle,
BLE_SM_PROC_STATE_ENC_START, -1, NULL);