All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/5] station: check if connected before allowing Roam()
@ 2021-09-23 22:57 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2021-09-23 22:57 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

---
 src/station.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/station.c b/src/station.c
index 98fc3cf2..3f860398 100644
--- a/src/station.c
+++ b/src/station.c
@@ -4082,6 +4082,9 @@ static struct l_dbus_message *station_force_roam(struct l_dbus *dbus,
 	if (mac_len != 6)
 		return dbus_error_invalid_args(message);
 
+	if (!station->connected_network)
+		return dbus_error_not_connected(message);
+
 	target = network_bss_find_by_addr(station->connected_network, mac);
 	if (!target || target == station->connected_bss)
 		return dbus_error_invalid_args(message);
-- 
2.31.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-23 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 22:57 [PATCH 4/5] station: check if connected before allowing Roam() James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.