runmodes: fix single runmode bug with pcap

Fix crash for suricata running with pcap option and single runmode.

Ticket: https://redmine.openinfosecfoundation.org/issues/2403
pull/3133/head
Maurizio Abba 7 years ago committed by Victor Julien
parent e1e9ada9df
commit 204474de39

@ -422,8 +422,8 @@ int RunModeSetLiveCaptureSingle(ConfigIfaceParserFunc ConfigParser,
aconf = ConfigParser(live_dev);
live_dev_c = live_dev;
} else {
aconf = ConfigParser(live_dev_c);
live_dev_c = LiveGetDeviceName(0);
aconf = ConfigParser(live_dev_c);
}
return RunModeSetLiveCaptureWorkersForDevice(

Loading…
Cancel
Save