diff mbox

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.

Message ID 20120329014454.2f581cc4@c-base.org
State Accepted
Commit a4e73a0e470cde6fcf3983aca277f01540bb37fa
Headers show

Commit Message

Alexander Couzens March 28, 2012, 11:44 p.m. UTC
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@c-base.org>
---
 src/radius/radius_client.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen April 1, 2012, 10:42 a.m. UTC | #1
On Thu, Mar 29, 2012 at 01:44:54AM +0200, Alexander Couzens wrote:
> 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.

Thanks, applied.
diff mbox

Patch

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