From: Ray Ruvinskiy Date: Wed, 19 Apr 2017 15:27:26 +0000 (-0400) Subject: device: fix warning about NULL device X-Git-Tag: suricata-4.0.0-beta1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dc57c937e3a01dfe3022bd64e4db64caea1a019;p=thirdparty%2Fsuricata.git 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 --- diff --git a/src/util-runmodes.c b/src/util-runmodes.c index e4b05a64ad..fae2e7cf19 100644 --- a/src/util-runmodes.c +++ b/src/util-runmodes.c @@ -170,7 +170,7 @@ int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc ConfigParser, for (lthread = 0; lthread < nlive; lthread++) { const char *dev = LiveGetDeviceName(lthread); - const char *visual_devname = LiveGetShortName(live_dev); + const char *visual_devname = LiveGetShortName(dev); void *aconf; int threads_count;