mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sterl...@apache.org
Subject [05/16] incubator-mynewt-core git commit: newtmgr_ble - Update for latest NimBLE host API.
Date Mon, 01 Aug 2016 04:59:22 GMT
newtmgr_ble - Update for latest NimBLE host API.


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

Branch: refs/heads/sterly_refactor
Commit: 39bc0593ddc973bca4b89e66b53999001acb0e6d
Parents: 83d62d2
Author: Christopher Collins <ccollins@apache.org>
Authored: Wed Jul 27 17:40:49 2016 -0700
Committer: Sterling Hughes <sterling@apache.org>
Committed: Sun Jul 31 21:58:57 2016 -0700

----------------------------------------------------------------------
 libs/newtmgr/transport/ble/src/newtmgr_ble.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/39bc0593/libs/newtmgr/transport/ble/src/newtmgr_ble.c
----------------------------------------------------------------------
diff --git a/libs/newtmgr/transport/ble/src/newtmgr_ble.c b/libs/newtmgr/transport/ble/src/newtmgr_ble.c
index dbd9f12..716a974 100644
--- a/libs/newtmgr/transport/ble/src/newtmgr_ble.c
+++ b/libs/newtmgr/transport/ble/src/newtmgr_ble.c
@@ -171,10 +171,11 @@ nmgr_ble_proc_mq_evt(struct os_event *ev)
                 if (!m_resp) {
                     break;
                 }
+                assert(OS_MBUF_USRHDR_LEN(m_resp) >= sizeof (conn_handle));
                 memcpy(&conn_handle, OS_MBUF_USRHDR(m_resp),
                        sizeof (conn_handle));
                 ble_gattc_notify_custom(conn_handle, g_ble_nmgr_attr_handle,
-                                        &m_resp);
+                                        m_resp);
             }
             break;
 


Mime
View raw message