]> git.ipfire.org Git - thirdparty/hostap.git/commit
dbus: Clean up error reporting for TDLS peer address parsing
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 14:44:18 +0000 (16:44 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:12 +0000 (17:15 +0200)
commit508e24c20b481b5a63e65b05c20a61d8a067c760
treeeecd21f191b796963ff7b28cc2eb407e96899fcd
parent3b6170b78d9fcae737675affb2d54e34f819d0aa
dbus: Clean up error reporting for TDLS peer address parsing

Passing a pointer to an error reply message is not very robust since
memory allocation could fail even for that error message. Instead, use a
separate error value as the return value from get_peer_hwaddr_helper()
and return a pointer to the error message through a pointer-to-pointer
so that the error case will always be clear.

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