mateodx / pulledpork

Automatically exported from code.google.com/p/pulledpork
GNU General Public License v2.0
0 stars 0 forks source link

Use of uninitialized value $Snort_path in -B at pulledpork line 1630. #144

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I suggest the following change

--- pulledpork.pl       (revision 268)
+++ pulledpork.pl       (working copy)
@@ -1627,7 +1627,7 @@

 if ( !$Snort_path ) {
     $Snort_path = ( $Config_info{'snort_path'} );
-    $Snort      = snort_version($Snort_path) if ( -B $Snort_path && !$Snort );
+    $Snort      = snort_version($Snort_path) if ( !$Snort && -B $Snort_path );
     $arch       = get_arch();
     $Textonly   = 1 unless $Snort;
 }

Original issue reported on code.google.com by Alessandro.Guido on 24 Oct 2013 at 9:48