Commit ac654330 authored by Jiří Klimeš's avatar Jiří Klimeš
Browse files

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.
parent 841c2591
......@@ -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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment