diff options
-rwxr-xr-x | config/snort/snort.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index d7db399e..cd76db6f 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -944,6 +944,9 @@ function snort_load_rules_map($rules_path) { /* Read the file contents into an array, skipping */ /* empty lines. */ + if (!file_exists($file)) + continue; + $rules_array = file($file, FILE_SKIP_EMPTY_LINES); $record = ""; $b_Multiline = false; |