mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
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@david-bauer.net>
This commit is contained in:
parent
f85c970c9c
commit
9b880f09f3
@ -520,7 +520,7 @@
|
|||||||
{
|
{
|
||||||
u8 dialog_token, status_code, bss_termination_delay;
|
u8 dialog_token, status_code, bss_termination_delay;
|
||||||
- const u8 *pos, *end;
|
- const u8 *pos, *end;
|
||||||
+ const u8 *pos, *end, *target_bssid;
|
+ const u8 *pos, *end, *target_bssid = NULL;
|
||||||
int enabled = hapd->conf->bss_transition;
|
int enabled = hapd->conf->bss_transition;
|
||||||
struct sta_info *sta;
|
struct sta_info *sta;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user