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 ee53674..7ba288e 100644 --- a/accel-pppd/libnetlink/iputils.c +++ b/accel-pppd/libnetlink/iputils.c @@ -90,7 +90,7 @@ static int store_nlmsg(const struct sockaddr_nl *who, struct nlmsghdr *n, void * if (tb[IFLA_LINKINFO]) { parse_rtattr_nested(tb2, IFLA_MAX, tb[IFLA_LINKINFO]); - if (!strcmp(RTA_DATA(tb2[IFLA_INFO_KIND]), "vlan")) { + if (tb2[IFLA_INFO_KIND] && !strcmp(RTA_DATA(tb2[IFLA_INFO_KIND]), "vlan")) { parse_rtattr_nested(tb2, IFLA_MAX, tb2[IFLA_INFO_DATA]); vid = *(uint16_t *)RTA_DATA(tb2[IFLA_VLAN_ID]); } |