Project

General

Profile

Actions

Bug #12137

closed

PHP error after rulesets update

Added by Viktor Gurov almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Snort
Target version:
-
Start date:
07/16/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

After fresh Snort install, if you configure the rules update and run "Force Update", an error occurs if the interfaces are not configured:

PHP Errors:
[16-Jul-2021 13:51:29 Europe/Moscow] PHP Warning:  
Invalid argument supplied for foreach() in /usr/local/pkg/snort/snort_check_for_rule_updates.php on line 446

init_config_arr(array('installedpackages', 'snortglobal', 'rule')) needed

Actions #1

Updated by Bill Meeks almost 3 years ago

I already have a fix for this applied in my internal package repo. The same potential bug exists in the Suricata package as well, and I have fixed it there in my internal repo.

I will open a Pull Request in the near future and push this fix (along with some others) for both Snort and Suricata. I will update this issue when the Pull Request is posted for review.

Actions #2

Updated by Bill Meeks almost 3 years ago

This fix has been merged into both the RELEASE and DEVEL branches via pull request: https://github.com/pfsense/FreeBSD-ports/pull/1086. The issue is ready to be marked RESOLVED.

Actions #3

Updated by Jim Pingle almost 3 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF