D-Bus: Fix Introspect() in case of os_strdup() failure
authorJouni Malinen <j@w1.fi>
Tue, 6 Jan 2015 13:55:51 +0000 (15:55 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 7 Jan 2015 11:19:00 +0000 (13:19 +0200)
commitdacf6058129edab7f9c669bf4308342b3ed8905a
treee26050b07e07b195597fe78c9277305e6526563f
parent68a866974b8ae279694ed626c9be678564e62b63
D-Bus: Fix Introspect() in case of os_strdup() failure

add_interface() did not check for os_strdup() return value and could end
up dereferencing a NULL pointer if memory allocation failed.

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