hostapd: ubus: fix uninitialized pointer
authorDavid Bauer <mail@david-bauer.net>
Thu, 21 Oct 2021 15:09:28 +0000 (17:09 +0200)
committerDavid Bauer <mail@david-bauer.net>
Thu, 21 Oct 2021 15:09:35 +0000 (17:09 +0200)
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>
package/network/services/hostapd/patches/600-ubus_support.patch

index 7bb998dbb8d84dad666f0f2d5c2d1e2dc04e3dc9..ccf66be6b82c3e4fd50ed8b26d24dc7fafe37de2 100644 (file)
  {
        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;