aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-06 10:14:35 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-06 10:14:35 (GMT)
commitc3299a8b7423653cb7da1e6b8ec8fbfd9948f7b6 (patch)
tree927b5a8bb1d9668e6937f0c42586238fd22c4488 /wpa_supplicant
parent6c195cd5070c8d70a9b7581d7cf74eacd7e51ebf (diff)
downloadhostap-c3299a8b7423653cb7da1e6b8ec8fbfd9948f7b6.zip
hostap-c3299a8b7423653cb7da1e6b8ec8fbfd9948f7b6.tar.gz
hostap-c3299a8b7423653cb7da1e6b8ec8fbfd9948f7b6.tar.bz2
dbus: Fix crash on property change if D-Bus API is disabled
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dbus/dbus_new_helpers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_helpers.c b/wpa_supplicant/dbus/dbus_new_helpers.c
index 65de8ab..06749db 100644
--- a/wpa_supplicant/dbus/dbus_new_helpers.c
+++ b/wpa_supplicant/dbus/dbus_new_helpers.c
@@ -810,6 +810,9 @@ void wpa_dbus_mark_property_changed(struct wpas_dbus_priv *iface,
const struct wpa_dbus_property_desc *dsc;
int i = 0;
+ if (iface == NULL)
+ return;
+
dbus_connection_get_object_path_data(iface->con, path,
(void **) &obj_desc);
if (!obj_desc) {