- Don't segfault with dbus control interface enabled and invalid network

interface (rh #310531)
This commit is contained in:
Daniel Williams 2007-10-09 21:40:28 +00:00
parent 8929edf7a2
commit feb46a6734
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -up wpa_supplicant-0.5.7/wpa_supplicant.c.global-iface-segfault-fix wpa_supplicant-0.5.7/wpa_supplicant.c
--- wpa_supplicant-0.5.7/wpa_supplicant.c.global-iface-segfault-fix 2007-10-09 17:34:25.000000000 -0400
+++ wpa_supplicant-0.5.7/wpa_supplicant.c 2007-10-09 17:35:17.000000000 -0400
@@ -2352,7 +2352,8 @@ static void wpa_supplicant_deinit_iface(
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);

View File

@ -2,7 +2,7 @@ Summary: WPA/WPA2/IEEE 802.1X Supplicant
Name: wpa_supplicant Name: wpa_supplicant
Epoch: 1 Epoch: 1
Version: 0.5.7 Version: 0.5.7
Release: 9%{?dist} Release: 10%{?dist}
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@ -22,6 +22,7 @@ Patch5: wpa_supplicant-0.5.7-qmake-location.patch
Patch6: wpa_supplicant-0.5.7-flush-debug-output.patch Patch6: wpa_supplicant-0.5.7-flush-debug-output.patch
Patch7: wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch Patch7: wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch
Patch8: wpa_supplicant-0.5.7-always-scan.patch Patch8: wpa_supplicant-0.5.7-always-scan.patch
Patch9: wpa_supplicant-0.5.7-dbus-iface-segfault-fix.patch
URL: http://w1.fi/wpa_supplicant/ URL: http://w1.fi/wpa_supplicant/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -57,6 +58,7 @@ Graphical User Interface for wpa_supplicant written using QT3
%patch6 -p1 -b .flush-debug-output %patch6 -p1 -b .flush-debug-output
%patch7 -p1 -b .sigusr1-changes-debuglevel %patch7 -p1 -b .sigusr1-changes-debuglevel
%patch8 -p1 -b .always-scan %patch8 -p1 -b .always-scan
%patch9 -p1 -b .dbus-iface-segfault-fix
%build %build
cp %{SOURCE1} ./.config cp %{SOURCE1} ./.config
@ -142,6 +144,10 @@ fi
%{_bindir}/wpa_gui %{_bindir}/wpa_gui
%changelog %changelog
* Tue Oct 9 2007 Dan Williams <dcbw@redhat.com> - 0.5.7-10
- Don't segfault with dbus control interface enabled and invalid network
interface (rh #310531)
* Tue Sep 25 2007 Dan Williams <dcbw@redhat.com> - 0.5.7-9 * Tue Sep 25 2007 Dan Williams <dcbw@redhat.com> - 0.5.7-9
- Always allow explicit wireless scans triggered from a control interface - Always allow explicit wireless scans triggered from a control interface