From: David Bauer Date: Thu, 21 Oct 2021 15:09:28 +0000 (+0200) Subject: hostapd: ubus: fix uninitialized pointer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b880f09f394049e0629e3c9d4061f431a6b19a8;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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;