diff options
| -rw-r--r-- | src/drivers/driver_nl80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 3437cd78..53ef1a0b 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -3401,7 +3401,7 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg) nla_for_each_nested(nl, tb[NL80211_ATTR_VENDOR_DATA], rem) { struct nl80211_vendor_cmd_info *vinfo; - if (nla_len(nl) != sizeof(vinfo)) { + if (nla_len(nl) != sizeof(*vinfo)) { wpa_printf(MSG_DEBUG, "nl80211: Unexpected vendor data info"); continue; } @@ -3417,7 +3417,7 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg) nla_for_each_nested(nl, tb[NL80211_ATTR_VENDOR_EVENTS], rem) { struct nl80211_vendor_cmd_info *vinfo; - if (nla_len(nl) != sizeof(vinfo)) { + if (nla_len(nl) != sizeof(*vinfo)) { wpa_printf(MSG_DEBUG, "nl80211: Unexpected vendor data info"); continue; } |
