From 8a1f4beb65111b88b1114afac96c33a9970301c5 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 26 Jun 2015 15:43:16 +0200 Subject: [PATCH] linux-platform: don't try to read vlan id from netlink objects without type set They just don't have the information. --- src/platform/nm-linux-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index eea117a979..9d83e54221 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -1000,7 +1000,7 @@ _nmp_vt_cmd_plobj_init_from_nl_link (NMPlatform *platform, NMPlatformObject *_ob obj->mtu = rtnl_link_get_mtu (nlo); obj->arptype = rtnl_link_get_arptype (nlo); - if (obj->type == NM_LINK_TYPE_VLAN) + if (!g_strcmp0 (rtnl_link_get_type (nlo), "vlan")) obj->vlan_id = rtnl_link_vlan_get_id (nlo); if ((nladdr = rtnl_link_get_addr (nlo))) {