iwinfo: properly initialize memory of global nl80211_state, fixes random libnl-tiny assertions when using nl80211_probe() on not supported devices

SVN-Revision: 34003
master
Jo-Philipp Wich 12 years ago
parent 2b81aaa9ee
commit 0e3de8eff7
  1. 2
      package/network/utils/iwinfo/Makefile
  2. 2
      package/network/utils/iwinfo/src/iwinfo_nl80211.c

@ -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 := \

@ -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;

Loading…
Cancel
Save