PATCH: accounting start

Gunter Burchardt gbur
Mon Jul 5 02:44:17 PDT 2004


I found a little bug. In some cases an accounting start packet is send
when a port got deauthorized. In other cases the packet will be send
to early. The patch attached will solve this problem.

regards
gunter
-------------- next part --------------
diff -Nur hostap.old/hostapd/ieee802_1x.c hostap/hostapd/ieee802_1x.c
--- hostap.old/hostapd/ieee802_1x.c	2004-06-21 03:46:34.000000000 +0200
+++ hostap/hostapd/ieee802_1x.c	2004-07-05 11:39:35.000000000 +0200
@@ -106,7 +106,8 @@
 	if (hapd->driver.set_sta_authorized)
 		hapd->driver.set_sta_authorized(hapd->driver.data, sta->addr,
 						authorized);
-	accounting_sta_start(hapd, sta);
+	if (authorized)
+		accounting_sta_start(hapd, sta);
 }
 
 



More information about the Hostap mailing list