projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ecbaa4
)
libiwinfo: clear buffer in nl80211_phy2ifname(), prevents running operations against...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 13 Nov 2011 22:00:40 +0000
(22:00 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 13 Nov 2011 22:00:40 +0000
(22:00 +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 a27ed02e19ac0c476a005544cc558cb7bb412a9e..d00d26b0adb401668dc71e3e93d134e8ee922fab 100644
(file)
--- a/
contrib/package/iwinfo/src/iwinfo_nl80211.c
+++ b/
contrib/package/iwinfo/src/iwinfo_nl80211.c
@@
-452,6
+452,8
@@
static char * nl80211_phy2ifname(const char *ifname)
else if (!strncmp(ifname, "radio", 5))
phyidx = atoi(&ifname[5]);
+ memset(nif, 0, sizeof(nif));
+
if (phyidx > -1)
{
if ((d = opendir("/sys/class/net")) != NULL)