diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-29 22:15:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-29 22:15:29 +0000 |
commit | 70c281419f78b738cc12c2f6338ab8178a7d22e5 (patch) | |
tree | 92de281bce4f0d6a4b9373fa1e6489005ac55378 | |
parent | 5c333646cc27a3e13843827da6ddf8dfb101db3f (diff) | |
download | upstream-70c281419f78b738cc12c2f6338ab8178a7d22e5.tar.gz upstream-70c281419f78b738cc12c2f6338ab8178a7d22e5.tar.bz2 upstream-70c281419f78b738cc12c2f6338ab8178a7d22e5.zip |
AA: iwinfo: backport r34003
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34004 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/iwinfo/Makefile | 2 | ||||
-rw-r--r-- | package/iwinfo/src/iwinfo_nl80211.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/package/iwinfo/Makefile b/package/iwinfo/Makefile index f05fe4a786..bbef2bdc85 100644 --- a/package/iwinfo/Makefile +++ b/package/iwinfo/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libiwinfo -PKG_RELEASE:=35 +PKG_RELEASE:=36 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) PKG_CONFIG_DEPENDS := \ diff --git a/package/iwinfo/src/iwinfo_nl80211.c b/package/iwinfo/src/iwinfo_nl80211.c index 304a18b3ec..763ed61c97 100644 --- a/package/iwinfo/src/iwinfo_nl80211.c +++ b/package/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; |