author | Todd Previte <toddx.a.previte@intel.com> | |
Sat, 4 Feb 2012 11:13:59 +0000 (13:13 +0200) | ||
committer | Jouni Malinen <j@w1.fi> | |
Sat, 4 Feb 2012 11:13:59 +0000 (13:13 +0200) | ||
commit | 4bb70bd80d61a451b598102bd26f5348846fdef0 | |
tree | 8abe082e1429bdd20185e3b6af9d6c0475d37fa1 | tree | snapshot (tar.xz tar.gz zip) |
parent | aa89df56996c0da499f1cdb132893c1863b6b2fb | commit | diff |
P2P: Fix the setter function for DBus group properties
The setter function uses the same hostapd_data structure as the getter
which causes it to crash if called on a P2P client. To overcome this
issue, the role is checked to ensure it is called on a group owner and
the pointer is examined for validity. The function will return an error
if called on a non-GO system.
Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1
The setter function uses the same hostapd_data structure as the getter
which causes it to crash if called on a P2P client. To overcome this
issue, the role is checked to ensure it is called on a group owner and
the pointer is examined for validity. The function will return an error
if called on a non-GO system.
Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1
wpa_supplicant/dbus/dbus_new_handlers_p2p.c | diff | blob | history |