Revision 6c8102e3

View differences:

sysdep/linux/netlink/netlink.c
255 255
nl_parse_link(struct nlmsghdr *h, int scan)
256 256
{
257 257
  struct ifinfomsg *i;
258
  struct rtattr *a[IFLA_STATS+1];
258
  struct rtattr *a[IFLA_WIRELESS+1];
259 259
  int new = h->nlmsg_type == RTM_NEWLINK;
260 260
  struct iface f;
261 261
  struct iface *ifi;
......
268 268
  if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 ||
269 269
      !a[IFLA_MTU] || RTA_PAYLOAD(a[IFLA_MTU]) != 4)
270 270
    {
271
      if (scan)
271
      if (scan || !a[IFLA_WIRELESS])
272 272
        log(L_ERR "nl_parse_link: Malformed message received");
273 273
      return;
274 274
    }

Also available in: Unified diff