From 9fb5c346d2263fb567da203f23aec47def140f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Tue, 16 Feb 2021 18:12:05 -0300 Subject: [PATCH] hostapd: don't use patches symlinked from wpa_supplicant. Avoid requiring fixes like e054a3cf3a14d4508ce71fdcbdf61be79d91c79b, since these are separate packages which happened to have a source file in common. --- .../patches/patch-src_utils_eloop_c.diff | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) mode change 120000 => 100644 srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff diff --git a/srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff b/srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff deleted file mode 120000 index acda6abf67f..00000000000 --- a/srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff +++ /dev/null @@ -1 +0,0 @@ -../../wpa_supplicant/patches/patch-src_utils_eloop_c.diff \ No newline at end of file diff --git a/srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff b/srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff new file mode 100644 index 00000000000..bab2cee4e59 --- /dev/null +++ b/srcpkgs/hostapd/patches/patch-src_utils_eloop_c.diff @@ -0,0 +1,16 @@ +$OpenBSD: patch-src_utils_eloop_c,v 1.5 2015/09/29 11:57:54 dcoppa Exp $ + +don't try to access list members to free them unless already initialised + +--- a/src/utils/eloop.c.orig Sun Sep 27 21:02:05 2015 ++++ b/src/utils/eloop.c Mon Sep 28 09:35:05 2015 +@@ -1064,6 +1064,9 @@ void eloop_destroy(void) + struct eloop_timeout *timeout, *prev; + struct os_reltime now; + ++ if (eloop.timeout.prev == NULL) ++ return; ++ + os_get_reltime(&now); + dl_list_for_each_safe(timeout, prev, &eloop.timeout, + struct eloop_timeout, list) {