[PATCH] P2P:Fixing the supplicant crash if a group interface has b=

Neeraj Garg neerajkg
Tue May 29 02:53:51 PDT 2012


een removed in the event handler itself
 Signed-off-by: Neeraj Garg <neerajkg at broadcom.com>

---
 src/drivers/driver_nl80211.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 693a885..a6cb0b8 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -2210,8 +2210,10 @@ static int process_global_event(struct nl_msg *msg, =
void *arg)
 	dl_list_for_each(drv, &global->interfaces,
 			 struct wpa_driver_nl80211_data, list) {
 		if (ifidx =3D=3D -1 || ifidx =3D=3D drv->ifindex ||
-		    have_ifidx(drv, ifidx))
+		    have_ifidx(drv, ifidx)) {
 			do_process_drv_event(drv, gnlh->cmd, tb);
+			break;
+		}
 	}
=20
 	return NL_SKIP;
--=20
1.7.4.1




More information about the Hostap mailing list