You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ko...@apache.org on 2021/10/29 08:47:15 UTC

[mynewt-nimble] branch master updated: host/mesh: fix send_pub_key

This is an automated email from the ASF dual-hosted git repository.

kopyscinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 21fa48c  host/mesh: fix send_pub_key
21fa48c is described below

commit 21fa48c18cc5376f997c87ce27704035e097c42d
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Fri Oct 29 10:05:47 2021 +0200

    host/mesh: fix send_pub_key
    
    We should copy from om_data, not om_databuf.
---
 nimble/host/mesh/src/provisioner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/mesh/src/provisioner.c b/nimble/host/mesh/src/provisioner.c
index c51a769..2e59209 100644
--- a/nimble/host/mesh/src/provisioner.c
+++ b/nimble/host/mesh/src/provisioner.c
@@ -349,7 +349,7 @@ static void send_pub_key(void)
 	sys_memcpy_swap(net_buf_simple_add(buf, 32), &key[32], 32);
 
 	/* PublicKeyProvisioner */
-	memcpy(&bt_mesh_prov_link.conf_inputs[17], &buf->om_databuf[1], 64);
+	memcpy(&bt_mesh_prov_link.conf_inputs[17], &buf->om_data[1], 64);
 
 	if (bt_mesh_prov_send(buf, public_key_sent)) {
 		BT_ERR("Failed to send Public Key");