core: fix wrong check of gretap hardware length

GRETAP have an Ethernet-like hardware address.

Fixes: e2270040c0
This commit is contained in:
Beniamino Galvani 2018-06-27 14:38:11 +02:00
parent a0f4f40215
commit 403b545ac6

View file

@ -3008,7 +3008,6 @@ nm_utils_get_ipv6_interface_identifier (NMLinkType link_type,
out_iid->id_u8[0] |= 0x02;
return TRUE;
case NM_LINK_TYPE_GRE:
case NM_LINK_TYPE_GRETAP:
/* Hardware address is the network-endian IPv4 address */
g_return_val_if_fail (hwaddr_len == 4, FALSE);
addr = * (guint32 *) hwaddr;