From: Jo-Philipp Wich Date: Thu, 1 Dec 2011 16:18:37 +0000 (+0000) Subject: libiwinfo: clear buffer in nl80211_ifname2phy(), prevents running operations against... X-Git-Tag: 0.11.0~1272 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=6f46d97b76adc5f63cf9fe6fa7511d492fed6efe;p=project%2Fluci.git libiwinfo: clear buffer in nl80211_ifname2phy(), prevents running operations against the wrong phy --- diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c index d00d26b0a..83665ccc8 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) {