mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 07:20:14 +01:00
config: fix a crash in nm_config_device_get_hwaddr()
get_hw_address (nm_device_get_hw_address()) asserts and then SIGSEGV happens in nm_utils_hwaddr_ntoa(). Found by pavlix in NM live VM.
This commit is contained in:
parent
841c259119
commit
ac6543305e
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ char *
|
|||
nm_config_device_get_hwaddr (NMConfigDevice *self)
|
||||
{
|
||||
const guint8 *bytes;
|
||||
guint len;
|
||||
guint len = 0;
|
||||
|
||||
bytes = NM_CONFIG_DEVICE_GET_INTERFACE (self)->get_hw_address (self, &len);
|
||||
return nm_utils_hwaddr_ntoa (bytes, nm_utils_hwaddr_type (len));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue