File wpa_supplicant-dbus-iface-segfault-fix.patch of Package wpa_supplicant

diff -ur BUILD/wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c BUILD2/wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c
--- BUILD/wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c	2008-08-04 11:45:40.000000000 +0200
+++ BUILD2/wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c	2008-08-04 11:45:24.000000000 +0200
@@ -1818,7 +1818,8 @@
 		wpa_clear_keys(wpa_s, NULL);
 	}
 
-	wpas_dbus_unregister_iface(wpa_s);
+	if (wpa_s->global)
+	  wpas_dbus_unregister_iface(wpa_s);
 
 	wpa_supplicant_cleanup(wpa_s);