Bug#404018: Break out of the `while (loop)'-loop when no socket can be opened.
[collectd.git] / src / network.c
index 22e911a..c233de6 100644 (file)
@@ -451,7 +451,7 @@ int network_receive (char **host, char **type, char **inst, char **value)
        {
                syslog (LOG_WARNING, "Invalid message from `%s'", *host);
                free (*host); *host = NULL;
-               return (-1);
+               return (1);
        }
 
        if ((*type = strdup (fields[0])) == NULL)