projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96dc9a6
)
D-Bus: Fix interface unregistration on error path
author
Jouni Malinen
<j@w1.fi>
Tue, 6 Jan 2015 21:13:28 +0000
(23:13 +0200)
committer
Jouni Malinen
<j@w1.fi>
Wed, 7 Jan 2015 11:19:01 +0000
(13:19 +0200)
It is possible for this function to get called even if D-Bus
registration had failed, so the path can be NULL here.
Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_new.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/dbus/dbus_new.c
b/wpa_supplicant/dbus/dbus_new.c
index
b21b7a8
..
b30cc38
100644
(file)
--- a/
wpa_supplicant/dbus/dbus_new.c
+++ b/
wpa_supplicant/dbus/dbus_new.c
@@
-3227,7
+3227,7
@@
int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
if (wpa_s == NULL || wpa_s->global == NULL)
return 0;
ctrl_iface = wpa_s->global->dbus;
- if (ctrl_iface == NULL)
+ if (ctrl_iface == NULL
|| wpa_s->dbus_new_path == NULL
)
return 0;
wpa_printf(MSG_DEBUG, "dbus: Unregister interface object '%s'",