summaryrefslogtreecommitdiff
path: root/package/network/utils/iwinfo/src
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-29 22:11:57 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-29 22:11:57 +0000
commit1ca13d1351bc09148c204a22c8a8cfed99623b28 (patch)
treeda28e59afa3f76df4438ac6aa3d388e0b4604028 /package/network/utils/iwinfo/src
parenta77c4227d630572bd8cbc7f3999c1886a1f2a658 (diff)
iwinfo: properly initialize memory of global nl80211_state, fixes random libnl-tiny assertions when using nl80211_probe() on not supported devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34003 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/iwinfo/src')
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_nl80211.c b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
index 304a18b3ec..763ed61c97 100644
--- a/package/network/utils/iwinfo/src/iwinfo_nl80211.c
+++ b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
@@ -41,6 +41,8 @@ static int nl80211_init(void)
goto err;
}
+ memset(nls, 0, sizeof(*nls));
+
nls->nl_sock = nl_socket_alloc();
if (!nls->nl_sock) {
err = -ENOMEM;