diff options
-rw-r--r-- | accel-pppd/libnetlink/iputils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/libnetlink/iputils.c b/accel-pppd/libnetlink/iputils.c index 550717f1..23325fcd 100644 --- a/accel-pppd/libnetlink/iputils.c +++ b/accel-pppd/libnetlink/iputils.c @@ -314,7 +314,7 @@ int __export iplink_vlan_get_vid(int ifindex, int *iflink) parse_rtattr_nested(tb, IFLA_MAX, tb[IFLA_LINKINFO]); - if (strcmp(RTA_DATA(tb[IFLA_INFO_KIND]), "vlan")) + if (!tb[IFLA_INFO_KIND] || strcmp(RTA_DATA(tb[IFLA_INFO_KIND]), "vlan")) goto out; parse_rtattr_nested(tb, IFLA_MAX, tb[IFLA_INFO_DATA]); |