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

Fix longstanding ‘cut and paste’ bug which clears Manfacturer Data 
structure when it should be clearing Data structure

---
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);
 }







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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 12:39 [PATCH BlueZ v1] client: make ad_clear_data() clear the correct structure Northfield Stuart
2023-12-07 13:16 ` [BlueZ,v1] " 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).