projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd3c49
)
libiwinfo: clear buffer in nl80211_ifname2phy(), prevents running operations against...
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 1 Dec 2011 16:18:37 +0000
(16:18 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 1 Dec 2011 16:18:37 +0000
(16:18 +0000)
contrib/package/iwinfo/src/iwinfo_nl80211.c
patch
|
blob
|
history
diff --git
a/contrib/package/iwinfo/src/iwinfo_nl80211.c
b/contrib/package/iwinfo/src/iwinfo_nl80211.c
index d00d26b0adb401668dc71e3e93d134e8ee922fab..83665ccc8d88eb9dff085d246d93b865b3bd3eaa 100644
(file)
--- 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)
{