mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 17:30:16 +01:00
parent
e165463964
commit
3e8d828008
1 changed files with 2 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ nm_ap_update_from_properties (NMAccessPoint *ap,
|
|||
const char *supplicant_path,
|
||||
GVariant *properties)
|
||||
{
|
||||
const char *addr;
|
||||
char *addr;
|
||||
const guint8 *bytes;
|
||||
GVariant *v;
|
||||
gsize len;
|
||||
|
|
@ -424,6 +424,7 @@ nm_ap_update_from_properties (NMAccessPoint *ap,
|
|||
if (len == ETH_ALEN) {
|
||||
addr = nm_utils_hwaddr_ntoa (bytes, len);
|
||||
nm_ap_set_address (ap, addr);
|
||||
g_free (addr);
|
||||
}
|
||||
g_variant_unref (v);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue