[PATCH] Fix double free in a wpa enterprise setup, after a client is connecting and hostapd can not reach radius server. It will double free while retransmitting the radius package.
Alexander Couzens
lynxis
Wed Mar 28 16:44:54 PDT 2012
Fix double free in a wpa enterprise setup, after a client
is connecting and hostapd can not reach radius server.
It will double free while retransmitting the radius package.
Signed-off-by: Alexander Couzens <lynxis at c-base.org>
---
src/radius/radius_client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c
index bcd471b..cdaeae9 100644
--- a/src/radius/radius_client.c
+++ b/src/radius/radius_client.c
@@ -678,7 +678,7 @@ int radius_client_send(struct radius_client_data *radius,
radius_client_list_add(radius, msg, msg_type, shared_secret,
shared_secret_len, addr);
- return res;
+ return 0;
}
--
1.7.9.5
More information about the Hostap
mailing list