[openwrt/openwrt] hostapd: ubus: fix uninitialized pointer

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 21 08:11:26 PDT 2021


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9b880f09f394049e0629e3c9d4061f431a6b19a8

commit 9b880f09f394049e0629e3c9d4061f431a6b19a8
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Thu Oct 21 17:09:28 2021 +0200

    hostapd: ubus: fix uninitialized pointer
    
    This fixes passing a bogus non-null pointer to the ubus handler in case
    the transition request is rejected.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 package/network/services/hostapd/patches/600-ubus_support.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/patches/600-ubus_support.patch b/package/network/services/hostapd/patches/600-ubus_support.patch
index 7bb998dbb8..ccf66be6b8 100644
--- a/package/network/services/hostapd/patches/600-ubus_support.patch
+++ b/package/network/services/hostapd/patches/600-ubus_support.patch
@@ -520,7 +520,7 @@
  {
  	u8 dialog_token, status_code, bss_termination_delay;
 -	const u8 *pos, *end;
-+	const u8 *pos, *end, *target_bssid;
++	const u8 *pos, *end, *target_bssid = NULL;
  	int enabled = hapd->conf->bss_transition;
  	struct sta_info *sta;
  



More information about the lede-commits mailing list