device: fix warning about NULL device

Fix '[ERRCODE: SC_ERR_INVALID_VALUE(130)] - Name of device should not be null'
warning on start-up with pfring.

Ticket: https://redmine.openinfosecfoundation.org/issues/2097
pull/2672/head
Ray Ruvinskiy 9 years ago committed by Victor Julien
parent 29c8125758
commit 0dc57c937e

@ -170,7 +170,7 @@ int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc ConfigParser,
for (lthread = 0; lthread < nlive; lthread++) { for (lthread = 0; lthread < nlive; lthread++) {
const char *dev = LiveGetDeviceName(lthread); const char *dev = LiveGetDeviceName(lthread);
const char *visual_devname = LiveGetShortName(live_dev); const char *visual_devname = LiveGetShortName(dev);
void *aconf; void *aconf;
int threads_count; int threads_count;

Loading…
Cancel
Save