mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 21:10:32 +01:00
core: fix an assertion in nm_default_wired_connection_new()
nm_device_get_hw_address() has to be called with out_len initialized to 0.
This commit is contained in:
parent
caed13b3ef
commit
ac697a912e
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ nm_default_wired_connection_new (NMDevice *device,
|
|||
NMSetting *setting;
|
||||
char *uuid;
|
||||
const guint8 *hw_address;
|
||||
guint len;
|
||||
guint len = 0;
|
||||
GByteArray *mac;
|
||||
|
||||
g_return_val_if_fail (NM_IS_DEVICE_ETHERNET (device), NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue