]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
device: fix warning about NULL device
authorRay Ruvinskiy <ray.ruvinskiy@arcticwolf.com>
Wed, 19 Apr 2017 15:27:26 +0000 (11:27 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 20 Apr 2017 07:37:41 +0000 (09:37 +0200)
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

src/util-runmodes.c

index e4b05a64ad74133288e4abaf31bffef7a533f070..fae2e7cf1992f0718624295b5c7a4ca25fc5a21a 100644 (file)
@@ -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;