From: Florian Forster Date: Mon, 5 May 2008 15:29:10 +0000 (+0200) Subject: powerdns plugin: Fix a bug when checking the configuration options. X-Git-Tag: collectd-4.4.0~12 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=e228afe28febdfd2af076f330e8766e82bc7e89a;p=collectd.git powerdns plugin: Fix a bug when checking the configuration options. --- diff --git a/src/powerdns.c b/src/powerdns.c index bf1b88e6..dee2c70f 100644 --- a/src/powerdns.c +++ b/src/powerdns.c @@ -909,7 +909,7 @@ static int powerdns_config (oconfig_item_t *ci) /* {{{ */ if ((strcasecmp ("Server", option->key) == 0) || (strcasecmp ("Recursor", option->key) == 0)) powerdns_config_add_server (option); - if (strcasecmp ("LocalSocket", option->key) == 0) + else if (strcasecmp ("LocalSocket", option->key) == 0) { char *temp = strdup (option->key); if (temp == NULL)