Manually refreshed: 010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch 110-mbedtls-TLS-crypto-option-initial-port.patch 140-tests-Makefile-make-run-tests-with-CONFIG_TLS.patch 301-mesh-noscan.patch 601-ucode_support.patch 780-Implement-APuP-Access-Point-Micro-Peering.patch Dropped upstreamed: 330-nl80211_fix_set_freq.patch 804-hostapd-Fix-clearing-up-settings-for-color-switch.patch Automatically rebased all other patches. Tested-by: Rany Hany <rany_hany@riseup.net> # ramips_mt7621/asus_rt-ax53u, mt7622/xiaomi_redmi-router-ax6s Tested-by: Andre Heider <a.heider@gmail.com> # filogic/openwrt_one, ramips_mt7621/netgear_wac124 Tested-by: Agustin Lorenzo <agustin.lorenzo@thinco.es> # qualcommax/ipq807x (AX3600) Tested-by: Daniel Pawlik <pawlik.dan@gmail.com> # BPi-R4 with mt7996 Signed-off-by: Rany Hany <rany_hany@riseup.net>
21 lines
607 B
Diff
21 lines
607 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Wed, 1 May 2024 18:55:24 +0200
|
|
Subject: [PATCH] AP: add missing null pointer check in hostapd_free_hapd_data
|
|
|
|
When called from wpa_supplicant, iface->interfaces can be NULL
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/src/ap/hostapd.c
|
|
+++ b/src/ap/hostapd.c
|
|
@@ -489,7 +489,7 @@ void hostapd_free_hapd_data(struct hosta
|
|
struct hapd_interfaces *ifaces = hapd->iface->interfaces;
|
|
size_t i;
|
|
|
|
- for (i = 0; i < ifaces->count; i++) {
|
|
+ for (i = 0; ifaces && i < ifaces->count; i++) {
|
|
struct hostapd_iface *iface = ifaces->iface[i];
|
|
size_t j;
|
|
|