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:
Tobias Brunner 2013-06-05 17:10:45 +02:00
parent 169bf6745e
commit cfae3a227d

View File

@ -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;