Message ID | 92D4BD44-91B2-4D0A-9A43-AEAE5DEAA963@metanate.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] Fix ad_clear_data() to clear correct structure | expand |
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); }