mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 12:30:07 +01:00
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: b019348fdd
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
9bd603b4d2
commit
5a040b4058
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue