mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
attr: Fix handling of invalid IPs listed after valid ones
Invalid IPs listed after a valid one resulted in an attribute of the same type but with invalid data.
This commit is contained in:
parent
169bf6745e
commit
cfae3a227d
@ -219,7 +219,7 @@ static void load_entries(private_attr_provider_t *this)
|
||||
host = host_create_from_string(token, 0);
|
||||
if (!host)
|
||||
{
|
||||
if (!type)
|
||||
if (mapped)
|
||||
{
|
||||
DBG1(DBG_CFG, "invalid host in key %s: %s", key, token);
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user