eap-radius: Fix creation of host_t objects based on Framed-IPv6-Address attributes
Fixes ec490e68ae ("eap-radius: Add support for some basic IPv6-specific RADIUS attributes").
References #1001.
This commit is contained in:
@@ -521,7 +521,7 @@ static void process_cfg_attributes(radius_message_t *msg)
|
|||||||
if ((type == RAT_FRAMED_IP_ADDRESS && data.len == 4) ||
|
if ((type == RAT_FRAMED_IP_ADDRESS && data.len == 4) ||
|
||||||
(type == RAT_FRAMED_IPV6_ADDRESS && data.len == 16))
|
(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)
|
if (host)
|
||||||
{
|
{
|
||||||
provider->add_framed_ip(provider,
|
provider->add_framed_ip(provider,
|
||||||
|
|||||||
Reference in New Issue
Block a user