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:
1 parent
169bf6745e
commit
cfae3a227d
1 file changed
+1
-1
@@ -219,7 +219,7 @@ static void load_entries(private_attr_provider_t *this)
|
|||||||
host = host_create_from_string(token, 0);
|
host = host_create_from_string(token, 0);
|
||||||
if (!host)
|
if (!host)
|
||||||
{
|
{
|
||||||
if (!type)
|
if (mapped)
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, "invalid host in key %s: %s", key, token);
|
DBG1(DBG_CFG, "invalid host in key %s: %s", key, token);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user