linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] Fix ad_clear_data() to clear correct structure
@ 2023-12-07 15:44 Northfield Stuart
  2023-12-07 16:17 ` [BlueZ] " bluez.test.bot
  0 siblings, 1 reply; 2+ messages in thread
From: Northfield Stuart @ 2023-12-07 15:44 UTC (permalink / raw)
  To: linux-bluetooth

---
 client/advertising.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/advertising.c b/client/advertising.c
index a7474d6a2..b8e3f4ab3 100644
--- a/client/advertising.c
+++ b/client/advertising.c
@@ -757,7 +757,7 @@ void ad_disable_manufacturer(DBusConnection *conn)
 
 static void ad_clear_data(void)
 {
-       memset(&ad.manufacturer, 0, sizeof(ad.manufacturer));
+       memset(&ad.data, 0, sizeof(ad.data));
 
        return bt_shell_noninteractive_quit(EXIT_SUCCESS);
 }
-- 
2.39.2 (Apple Git-143)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-07 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 15:44 [PATCH BlueZ] Fix ad_clear_data() to clear correct structure Northfield Stuart
2023-12-07 16:17 ` [BlueZ] " bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).