Reported by Daniel Wagner <[email protected]>
---
gsupplicant/supplicant.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 8a16663..b483f9b 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2411,10 +2411,12 @@ static void signal_wps_event(const char *path,
DBusMessageIter *iter)
static void create_peer_identifier(GSupplicantPeer *peer)
{
+ const unsigned char test[6] = {};
+
if (!peer)
return;
- if (!peer->device_address) {
+ if (!memcmp(peer->device_address, test, 6)) {
peer->identifier = g_strdup(peer->name);
return;
}
--
1.8.3.2
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman