]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata: fix double packet processing threads
authorAndreas Herz <andi@geekosphere.org>
Tue, 31 May 2016 21:18:06 +0000 (23:18 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Jun 2016 08:46:43 +0000 (10:46 +0200)
With the additional ParseInterfacesList the packet processing threads
were doubled since the Interface was included twice unless the device
was passed via the commandline with af-packet=IF.
The additonal ParseInterfacesList isn't necessary so remove it again

src/suricata.c

index cad97fcfe0080dbad0a8bcb510f0fcac7486a979..f486300c907c076fa525f1cc971c07fa5b5d95c9 100644 (file)
@@ -2533,10 +2533,6 @@ int main(int argc, char **argv)
         StatsSetupPostConfig();
     }
 
-    if (ParseInterfacesList(suri.run_mode, suri.pcap_dev) != TM_ECODE_OK) {
-        exit(EXIT_FAILURE);
-    }
-
     if (suri.run_mode == RUNMODE_CONF_TEST){
         SCLogNotice("Configuration provided was successfully loaded. Exiting.");
         MagicDeinit();