Merge pull request #3349 from rpv-tomsk/master
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 25 Nov 2019 09:27:32 +0000 (10:27 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Nov 2019 09:27:32 +0000 (10:27 +0100)
daemon: Fix regression caused by #3217

src/daemon/configfile.c

index 3a7364e..61fa901 100644 (file)
@@ -404,6 +404,10 @@ static int dispatch_block_plugin(oconfig_item_t *ci) {
     }
   }
 
+  /* Try to be backward-compatible with previous versions */
+  if (ci->children_num == 0)
+    return 0;
+
   /* Hm, no complex plugin found. Dispatch the values one by one */
   cf_callback_t *cf_cb = cf_search(plugin_name);
   if (cf_cb == NULL) {