eap-radius: Fix creation of host_t objects based on Framed-IPv6-Address attributes
[strongswan.git] / src / libcharon / plugins / eap_radius / eap_radius.c
index 8618ecf..237f065 100644 (file)
@@ -521,7 +521,7 @@ static void process_cfg_attributes(radius_message_t *msg)
                        if ((type == RAT_FRAMED_IP_ADDRESS && data.len == 4) ||
                                (type == RAT_FRAMED_IPV6_ADDRESS && data.len == 16))
                        {
                        if ((type == RAT_FRAMED_IP_ADDRESS && data.len == 4) ||
                                (type == RAT_FRAMED_IPV6_ADDRESS && data.len == 16))
                        {
-                               host = host_create_from_chunk(AF_INET, data, 0);
+                               host = host_create_from_chunk(AF_UNSPEC, data, 0);
                                if (host)
                                {
                                        provider->add_framed_ip(provider,
                                if (host)
                                {
                                        provider->add_framed_ip(provider,