Browse Source

dbus: Fix crash on property change if D-Bus API is disabled

Jouni Malinen 15 years ago
parent
commit
c3299a8b74
1 changed files with 3 additions and 0 deletions
  1. 3 0
      wpa_supplicant/dbus/dbus_new_helpers.c

+ 3 - 0
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) {