]> git.ipfire.org Git - thirdparty/hostap.git/commit
D-Bus(old): Fix removeNetwork and selectNetwork error handling
authorJouni Malinen <j@w1.fi>
Sat, 27 Dec 2014 20:50:17 +0000 (22:50 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:05 +0000 (15:49 +0200)
commit62856ad9899351598851b839fd3e5a4e3e7304b2
tree7c105401f71ae81b140553894871e4c5c216bd02
parent84edd136b5f0c303be0eeb43374da5aaafcc173e
D-Bus(old): Fix removeNetwork and selectNetwork error handling

wpas_dbus_decompose_object_path() may leave the network part NULL on
unexpected path. This resulted in NULL pointer dereference when
processing an invalid removeNetwork or selectNetwork call. Fix this by
explicitly verifying that the network part was included in the object
path.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_old_handlers.c