aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 16:52:42 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 18:58:51 (GMT)
commit48a35982a2e6bbcc91a22a336180f16ec8c65464 (patch)
tree981fa7368f367454ba8c1a57c35b701478cd40cf
parent9c42a3938abd3af54d973914bebb4039a267f477 (diff)
downloadhostap-06-48a35982a2e6bbcc91a22a336180f16ec8c65464.zip
hostap-06-48a35982a2e6bbcc91a22a336180f16ec8c65464.tar.gz
hostap-06-48a35982a2e6bbcc91a22a336180f16ec8c65464.tar.bz2
Fix RADIUS client to cancel IPv6 socket read notifications
(cherry picked from commit 2988796257e4ce850372376b5bc0a8c6c8db7a71)
-rw-r--r--src/radius/radius_client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c
index 31aa743..826acad 100644
--- a/src/radius/radius_client.c
+++ b/src/radius/radius_client.c
@@ -1080,6 +1080,12 @@ void radius_client_deinit(struct radius_client_data *radius)
eloop_unregister_read_sock(radius->auth_serv_sock);
if (radius->acct_serv_sock >= 0)
eloop_unregister_read_sock(radius->acct_serv_sock);
+#ifdef CONFIG_IPV6
+ if (radius->auth_serv_sock6 >= 0)
+ eloop_unregister_read_sock(radius->auth_serv_sock6);
+ if (radius->acct_serv_sock6 >= 0)
+ eloop_unregister_read_sock(radius->acct_serv_sock6);
+#endif /* CONFIG_IPV6 */
eloop_cancel_timeout(radius_retry_primary_timer, radius, NULL);