projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe4e6e
)
hostapd: fix a crash corner case
author
Felix Fietkau
<nbd@nbd.name>
Wed, 10 Apr 2024 11:46:40 +0000
(13:46 +0200)
committer
RISCi_ATOM
<bob@bobcall.me>
Thu, 11 Jul 2024 15:26:11 +0000
(11:26 -0400)
On some setup failures, iface->bss can be NULL
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit
1ee5b7e506f937e16737472eed02bc5409716304
)
Link:
https://github.com/openwrt/openwrt/pull/15898
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/services/hostapd/src/src/ap/ucode.c
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/src/src/ap/ucode.c
b/package/network/services/hostapd/src/src/ap/ucode.c
index 80c01b4b9be78e4dfa5366a5e769915f13e29a93..f961b6a09797a99c2670d8ba3cb3d3b7288755c1 100644
(file)
--- a/
package/network/services/hostapd/src/src/ap/ucode.c
+++ b/
package/network/services/hostapd/src/src/ap/ucode.c
@@
-51,7
+51,7
@@
hostapd_ucode_update_bss_list(struct hostapd_iface *iface, uc_value_t *if_bss, u
int i;
list = ucv_array_new(vm);
- for (i = 0; i < iface->num_bss; i++) {
+ for (i = 0; i
face->bss && i
< iface->num_bss; i++) {
struct hostapd_data *hapd = iface->bss[i];
uc_value_t *val = hostapd_ucode_bss_get_uval(hapd);