aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 16:52:42 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 16:52:42 (GMT)
commit2988796257e4ce850372376b5bc0a8c6c8db7a71 (patch)
treed41e010e57123a0413416ac60f5244210a9ab0d9
parentf481459f5e3eb24932057b88fea32b4576cccfc7 (diff)
downloadhostap-2988796257e4ce850372376b5bc0a8c6c8db7a71.zip
hostap-2988796257e4ce850372376b5bc0a8c6c8db7a71.tar.gz
hostap-2988796257e4ce850372376b5bc0a8c6c8db7a71.tar.bz2
Fix RADIUS client to cancel IPv6 socket read notifications
-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 f55bd5f..171af29 100644
--- a/src/radius/radius_client.c
+++ b/src/radius/radius_client.c
@@ -1297,6 +1297,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);