minor bug fix to auto-generate iptables logs in benchmark mode
authorMichael Rash <mbr@cipherdyne.org>
Mon, 13 Jan 2014 23:27:53 +0000 (18:27 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Mon, 13 Jan 2014 23:27:53 +0000 (18:27 -0500)
psad

diff --git a/psad b/psad
index b1105f5..78a9dab 100755 (executable)
--- a/psad
+++ b/psad
@@ -3341,7 +3341,7 @@ sub psad_init() {
     ### setup the appropriate iptables data file depending on whether
     ### SYSLOG_DAEMON is set to ulogd, or if ENABLE_SYSLOG_FILE is set
     ### to 'Y'
-    unless ($fw_data_file) {
+    unless ($benchmark or $fw_data_file) {
         if ($config{'SYSLOG_DAEMON'} =~ /ulog/i) {
             $fw_data_file = $config{'ULOG_DATA_FILE'};
         } elsif ($config{'ENABLE_SYSLOG_FILE'} eq 'Y') {