[pkg-wpa-devel] r1025 - /wpasupplicant/trunk/debian/patches/33_wait_for_interface_driver_init.patch

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Fri Jan 11 06:50:25 UTC 2008


Author: kelmo-guest
Date: Fri Jan 11 06:50:21 2008
New Revision: 1025

URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1025
Log:
do not be leaky

Modified:
    wpasupplicant/trunk/debian/patches/33_wait_for_interface_driver_init.patch

Modified: wpasupplicant/trunk/debian/patches/33_wait_for_interface_driver_init.patch
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/debian/patches/33_wait_for_interface_driver_init.patch?rev=1025&op=diff
==============================================================================
--- wpasupplicant/trunk/debian/patches/33_wait_for_interface_driver_init.patch (original)
+++ wpasupplicant/trunk/debian/patches/33_wait_for_interface_driver_init.patch Fri Jan 11 06:50:21 2008
@@ -191,7 +191,7 @@
  	}
 --- a/src/drivers/driver_wext.c
 +++ b/src/drivers/driver_wext.c
-@@ -945,9 +945,10 @@
+@@ -945,9 +945,13 @@
  
  	drv->mlme_sock = -1;
  
@@ -199,6 +199,9 @@
 +	if (wpa_driver_wext_get_ifflags(drv, &flags) != 0) {
  		printf("Could not get interface '%s' flags\n", drv->ifname);
 -	else if (!(flags & IFF_UP)) {
++		close(s);
++		close(drv->ioctl_sock);
++		os_free(drv);
 +		return NULL;
 +	} else if (!(flags & IFF_UP)) {
  		if (wpa_driver_wext_set_ifflags(drv, flags | IFF_UP) != 0) {




More information about the Pkg-wpa-devel mailing list