diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2014-10-04 15:59:37 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-05 11:29:33 +0200 |
commit | 5a040b4058d90ade98ce99b1f05b36e2bdacd28c (patch) | |
tree | 113ee2bc2c23b0c8a847ee05dcf8e1948e567648 | |
parent | 9bd603b4d2412e5de12990b03da967feac259e9d (diff) | |
download | NetworkManager-5a040b4058d90ade98ce99b1f05b36e2bdacd28c.tar.gz |
device: drop leftover bad assert
NetworkManager:ERROR:devices/nm-device.c:7089:nm_device_update_hw_address: assertion failed: (hwaddrlen <= sizeof (priv->hw_addr))
Aborted (core dumped)
Breaks 32-bit, works on 64-bit by dumb luck.
https://bugzilla.gnome.org/show_bug.cgi?id=737900
Fixes: b019348fdde223f39c91150e6b7a11e366fade63
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 21f50b0274..c2755ef5a2 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7086,7 +7086,7 @@ nm_device_update_hw_address (NMDevice *self) return; hwaddr = nm_platform_link_get_address (ifindex, &hwaddrlen); - g_assert (hwaddrlen <= sizeof (priv->hw_addr)); + if (hwaddrlen) { if (!priv->hw_addr || !nm_utils_hwaddr_matches (priv->hw_addr, -1, hwaddr, hwaddrlen)) { g_free (priv->hw_addr); |