diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-01 16:18:37 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-01 16:18:37 +0000 |
commit | 6f46d97b76adc5f63cf9fe6fa7511d492fed6efe (patch) | |
tree | 751d83c5e8f1c368ee9a3250187ac82dbf15e3c0 /contrib/package/iwinfo/src | |
parent | 8fd3c49a13385615e039f567207036b92ebbe292 (diff) |
libiwinfo: clear buffer in nl80211_ifname2phy(), prevents running operations against the wrong phy
Diffstat (limited to 'contrib/package/iwinfo/src')
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_nl80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c index d00d26b0ad..83665ccc8d 100644 --- a/contrib/package/iwinfo/src/iwinfo_nl80211.c +++ b/contrib/package/iwinfo/src/iwinfo_nl80211.c @@ -298,6 +298,8 @@ static char * nl80211_ifname2phy(const char *ifname) static char phy[32] = { 0 }; struct nl80211_msg_conveyor *req; + memset(phy, 0, sizeof(phy)); + req = nl80211_msg(ifname, NL80211_CMD_GET_WIPHY, 0); if (req) { |