Message ID | 20200827112759.6914-1-edef@edef.eu |
---|---|
State | New |
Headers | show |
Series | [BlueZ] profiles/network: Log connection event after setting device name | expand |
diff --git a/profiles/network/connection.c b/profiles/network/connection.c index 97b87d02e..170841de6 100644 --- a/profiles/network/connection.c +++ b/profiles/network/connection.c @@ -216,9 +216,9 @@ static void bnep_conn_cb(char *iface, int err, void *data) goto failed; } + memcpy(nc->dev, iface, sizeof(nc->dev)); info("%s connected", nc->dev); - memcpy(nc->dev, iface, sizeof(nc->dev)); btd_service_connecting_complete(nc->service, 0); if (nc->connect)