mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-03 12:54:38 +00:00
libiwinfo: reset ioctl_socket fd in iwinfo_close(), fixes random failures with multiple cycles of iwinfo_finish() / iwinfo_backend()
SVN-Revision: 35471
This commit is contained in:
parent
b1168e70d3
commit
e893d4d9a8
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
|
||||
# Copyright (C) 2010-2013 Jo-Philipp Wich <xm@subsignal.org>
|
||||
#
|
||||
# This is free software, licensed under the GPL 2 license.
|
||||
#
|
||||
@ -7,7 +7,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libiwinfo
|
||||
PKG_RELEASE:=38
|
||||
PKG_RELEASE:=39
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_CONFIG_DEPENDS := \
|
||||
|
@ -123,6 +123,8 @@ void iwinfo_close(void)
|
||||
{
|
||||
if (ioctl_socket > -1)
|
||||
close(ioctl_socket);
|
||||
|
||||
ioctl_socket = -1;
|
||||
}
|
||||
|
||||
struct iwinfo_hardware_entry * iwinfo_hardware(struct iwinfo_hardware_id *id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user