Skip to content

Commit

Permalink
NL80211_ATTR_MAX should be NL80211_ATTR_MAC in handle_del_peer()
Browse files Browse the repository at this point in the history
Reported-by: Chaoxing Lin <[email protected]>
Signed-off-by: Javier Cardona <[email protected]>
  • Loading branch information
Javier Cardona committed Apr 9, 2013
1 parent e999c59 commit f37902b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/meshd-nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static int handle_del_peer(struct netlink_config_s *nlcfg,
if (!tb[NL80211_ATTR_MAC] || nla_len(tb[NL80211_ATTR_MAC]) != ETH_ALEN)
return -1;

if ((peer = find_peer(nla_data(tb[NL80211_ATTR_MAX]), 0)))
if ((peer = find_peer(nla_data(tb[NL80211_ATTR_MAC]), 0)))
delete_peer(&peer);

return 0;
Expand Down

0 comments on commit f37902b

Please sign in to comment.