don't try to access list members to free them unless already initialised;
fixes a crash with wpa_priv usage(); wpa_priv not yet enabled
This commit is contained in:
parent
eef793741e
commit
e3e6f35472
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2013/01/28 11:56:55 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2013/02/04 10:04:44 sthen Exp $
|
||||
|
||||
COMMENT= IEEE 802.1X supplicant
|
||||
|
||||
DISTNAME= wpa_supplicant-2.0
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= security net
|
||||
|
||||
HOMEPAGE= http://hostap.epitest.fi/wpa_supplicant/
|
||||
|
16
security/wpa_supplicant/patches/patch-src_utils_eloop_c
Normal file
16
security/wpa_supplicant/patches/patch-src_utils_eloop_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_utils_eloop_c,v 1.1 2013/02/04 10:04:44 sthen Exp $
|
||||
|
||||
don't try to access list members to free them unless already initialised
|
||||
|
||||
--- src/utils/eloop.c.orig Sat Jan 12 15:42:53 2013
|
||||
+++ src/utils/eloop.c Sat Feb 2 12:11:26 2013
|
||||
@@ -793,6 +793,9 @@ void eloop_destroy(void)
|
||||
struct eloop_timeout *timeout, *prev;
|
||||
struct os_time now;
|
||||
|
||||
+ if (eloop.timeout.prev == NULL)
|
||||
+ return;
|
||||
+
|
||||
os_get_time(&now);
|
||||
dl_list_for_each_safe(timeout, prev, &eloop.timeout,
|
||||
struct eloop_timeout, list) {
|
Loading…
Reference in New Issue
Block a user