eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5a111ac902c1bb1dc9c3ac35bd0e19638bdc7998
parent 017069bf683d69da83c5fb8a45ecd5476e4ba839
Author: Torsten Schmitz <noreply.torsten@gmail.com>
Date:   Sun,  7 Nov 2021 01:41:37 +0100

station: Prevent a NULL pointer access

There is an unchecked NULL pointer access in network_has_open_pair.
open_info can be NULL, when out of multiple APs in range that advertise
the same SSID some advertise OWE transition elments and some don't.

Diffstat:
Msrc/station.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -698,6 +698,10 @@ static bool network_has_open_pair(struct network *network, struct scan_bss *owe) struct scan_bss *open = entry->data; struct ie_owe_transition_info *open_info = open->owe_trans; + /* AP does not advertise owe transition */ + if (!open_info) + continue; + /* * Check if this is an Open/Hidden pair: *