eiwd

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

commit f5a7510a2206d8d0fa521f1e72c514535b10c8b6
parent d66dcc94127f2a4dd901e9e0c78319e90e7b8214
Author: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
Date:   Tue,  7 Apr 2020 23:33:47 +0200

adhoc: segfault when exiting iwd after adhoc stop

adhoc_reset() destroys ssid and sta_states but leaves the pointers
around, athough the adhoc_state structure is not always freed.

This causes a segfault when exiting iwd after a client has done
adhoc start and adhoc stop on a device since adhoc_reset() is called
from adhoc_sta_free although it was previously called from
adhoc_leave_cb().

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

diff --git a/src/adhoc.c b/src/adhoc.c @@ -131,10 +131,12 @@ static void adhoc_reset(struct adhoc_state *adhoc) dbus_error_aborted(adhoc->pending)); l_free(adhoc->ssid); + adhoc->ssid = NULL; netdev_station_watch_remove(adhoc->netdev, adhoc->sta_watch_id); l_queue_destroy(adhoc->sta_states, adhoc_sta_free); + adhoc->sta_states = NULL; adhoc->started = false;