From c2704c39333c2866d62020e1aa4e749968fb3a01 Mon Sep 17 00:00:00 2001 From: cardigliano Date: Wed, 21 Oct 2015 01:23:32 +0200 Subject: [PATCH] workers runmode: allow multiple input devices This fix allows multiple input devices when running in 'workers' mode. --- src/util-runmodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-runmodes.c b/src/util-runmodes.c index c9b61e6a2e..a327a5129f 100644 --- a/src/util-runmodes.c +++ b/src/util-runmodes.c @@ -420,7 +420,7 @@ int RunModeSetLiveCaptureWorkers(ConfigIfaceParserFunc ConfigParser, for (ldev = 0; ldev < nlive; ldev++) { char *live_dev_c = NULL; - if (live_dev != NULL) { + if ((nlive <= 1) && (live_dev != NULL)) { aconf = ConfigParser(live_dev); live_dev_c = SCStrdup(live_dev); if (unlikely(live_dev_c == NULL)) {