Crash for offline pcap mode when running in single mode
Suricata fails initialization when running in pcap mode with single runmode.
To reproduce, just run suricata with flag option --pcap and configuration
- interface: eth1
This is just an example.
The bug is in function RunModeSetLiveCaptureSingle (from util-runmodes.c).
The configuration must be parsed after LiveGetDeviceName returned the interface for live_dev_c, not before. Switching the lines solve the bug.