From f14a69e3e2b7ba0c3be2c28a9c4f0e07d2599df7 Mon Sep 17 00:00:00 2001 From: Yves Mettier Date: Wed, 14 Oct 2015 17:25:13 +0100 Subject: [PATCH] Bugfix on write_tsdb configuration parser --- src/write_tsdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_tsdb.c b/src/write_tsdb.c index d1d65caa..615e8b75 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -593,7 +593,7 @@ static int wt_config(oconfig_item_t *ci) { if (strcasecmp("Node", child->key) == 0) wt_config_tsd(child); - if (strcasecmp("DNS_Cache_TTL", child->key) == 0) { + else if (strcasecmp("DNS_Cache_TTL", child->key) == 0) { int ttl; cf_util_get_int(child, &ttl); dnsttl = TIME_T_TO_CDTIME_T(ttl); -- 2.11.0