hostapd: ubus: fix uninitialized pointer
authorDavid Bauer <mail@david-bauer.net>
Thu, 21 Oct 2021 15:09:28 +0000 (17:09 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sun, 28 Aug 2022 06:17:29 +0000 (08:17 +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>
(cherry picked from commit 9b880f09f394049e0629e3c9d4061f431a6b19a8)
Signed-off-by: Nick Hainke <vincent@systemli.org>
package/network/services/hostapd/patches/600-ubus_support.patch

index db4d7f0189b3a918a8c213e700a6b26067e6a91f..d8fdec3d241fea38074cbde3e1c77b99ac0d4957 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;