aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);