]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fix pf_ring build 483/head
authorEric Leblond <eric@regit.org>
Tue, 30 Jul 2013 16:35:19 +0000 (18:35 +0200)
committerEric Leblond <eric@regit.org>
Tue, 30 Jul 2013 16:35:19 +0000 (18:35 +0200)
src/suricata.c

index 307373512d7d99d61ebb34ba456802334b114d69..d5a363efae87e84e2fc0390a355223b1a6935404 100644 (file)
@@ -1005,10 +1005,10 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
 #ifdef HAVE_PFRING
                 suri->run_mode = RUNMODE_PFRING;
                 if (optarg != NULL) {
-                    memset(pcap_dev, 0, sizeof(pcap_dev));
-                    strlcpy(pcap_dev, optarg,
-                            ((strlen(optarg) < sizeof(pcap_dev)) ?
-                             (strlen(optarg) + 1) : sizeof(pcap_dev)));
+                    memset(suri->pcap_dev, 0, sizeof(suri->pcap_dev));
+                    strlcpy(suri->pcap_dev, optarg,
+                            ((strlen(optarg) < sizeof(suri->pcap_dev)) ?
+                             (strlen(optarg) + 1) : sizeof(suri->pcap_dev)));
                     LiveRegisterDevice(optarg);
                 }
 #else