Diff between 0412f3843b3cef2ab6645d1a2193713c0c3f139b and 2fa53e0fb60db4e560ce230e7a4ea82ffe79c13f

Changed Files

File Additions Deletions Status
src/advertising.c +5 -0 modified

Full Patch

diff --git a/src/advertising.c b/src/advertising.c
index f17a1f5..38d2a2d 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -780,6 +780,11 @@ static void client_proxy_added(GDBusProxy *proxy, void *data)
 {
 	struct btd_adv_client *client = data;
 	DBusMessage *reply;
+	const char *interface;
+
+	interface = g_dbus_proxy_get_interface(proxy);
+	if (g_str_equal(interface, LE_ADVERTISEMENT_IFACE) == FALSE)
+		return;
 
 	reply = parse_advertisement(client);
 	if (!reply)