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

Blaise Gassend blaise
Mon Jan 31 09:21:25 PST 2011


Hi,

I would like to submit the attached patch to wpa_supplicant.

Blaise


---------- 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


Hi,

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;

---

Cheers,

Catalin



More information about the Hostap mailing list