From c0749bef83ed0a88262a3bb3eccdd8d4f504cd67 Mon Sep 17 00:00:00 2001 From: Aleksandr Khromykh Date: Mon, 20 Jun 2022 14:27:03 +0200 Subject: [PATCH] Bluetooth: Mesh: fix not initialized uuid in model publication uuid wasn't initialized in the publication setting command. It caused wrong the configuration clietn behavior. Signed-off-by: Aleksandr Khromykh --- subsys/bluetooth/mesh/shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/mesh/shell.c b/subsys/bluetooth/mesh/shell.c index 38ea5b3df04..202d0b213df 100644 --- a/subsys/bluetooth/mesh/shell.c +++ b/subsys/bluetooth/mesh/shell.c @@ -2166,6 +2166,7 @@ static int mod_pub_set(const struct shell *sh, uint16_t addr, bool is_va, if (!is_va) { pub.addr = shell_strtoul(argv[0], 0, &err); + pub.uuid = NULL; } else { len = hex2bin(argv[0], strlen(argv[0]), uuid, sizeof(uuid)); memset(uuid + len, 0, sizeof(uuid) - len);