From cfae3a227d5d1599fef4be5979cafbb380b25827 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 5 Jun 2013 17:10:45 +0200 Subject: [PATCH] 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. --- src/libhydra/plugins/attr/attr_provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libhydra/plugins/attr/attr_provider.c b/src/libhydra/plugins/attr/attr_provider.c index ae2c07368e..1a2fa7f286 100644 --- a/src/libhydra/plugins/attr/attr_provider.c +++ b/src/libhydra/plugins/attr/attr_provider.c @@ -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;