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

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 27 23:21:32 PDT 2022


ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/69ea8afaea45487975bc00795f31e286d337bc82

commit 69ea8afaea45487975bc00795f31e286d337bc82
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>
    (cherry picked from commit 9b880f09f394049e0629e3c9d4061f431a6b19a8)
    Signed-off-by: Nick Hainke <vincent at systemli.org>
---
 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 db4d7f0189..d8fdec3d24 100644
--- a/package/network/services/hostapd/patches/600-ubus_support.patch
+++ b/package/network/services/hostapd/patches/600-ubus_support.patch
@@ -441,7 +441,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