If `ping_add_host' failes, `ping_config' no longer returns an error condition. This...
authorocto <octo>
Sun, 19 Mar 2006 10:42:44 +0000 (10:42 +0000)
committerocto <octo>
Sun, 19 Mar 2006 10:42:44 +0000 (10:42 +0000)
src/ping.c

index fb2f8c1..303b278 100644 (file)
@@ -72,8 +72,7 @@ static int ping_config (char *key, char *value)
 
        if (ping_host_add (pingobj, value) < 0)
        {
-               syslog (LOG_ERR, "ping: `ping_host_add' failed.\n");
-               return (-1);
+               syslog (LOG_WARNING, "ping: `ping_host_add' failed.\n");
        }
 
        return (0);