Fwd: [PATCH] Getter for 'Interfaces' property of /f1/w1/wpa_supplicant1

Blaise Gassend blaise at willowgarage.com
Mon Jan 31 12:21:25 EST 2011


I would like to submit the attached patch to wpa_supplicant.


---------- Forwarded message ----------
From: Catalin Drula <catalin.drula at personalnetworks.ro>
Date: Sun, Dec 19, 2010 at 11:56 AM
Subject: [PATCH] Getter for 'Interfaces' property of /f1/w1/wpa_supplicant1
To: j at w1.fi


There's a bug in the getter for the 'Interfaces' property
of /fi/w1/wpa_supplicant1 (new D-Bus interface) which causes a
'Segmentation Fault' when there are multiple interfaces.

This fix applies to wpa_supplicant/dbus/dbus_new_handlers.c
(hostap-0.7.git trunk) at line 883:

         for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next)
-                 paths[i] = wpa_s->dbus_new_path;
+                 paths[i++] = wpa_s->dbus_new_path;




More information about the HostAP mailing list