Bug #12137
closedPHP error after rulesets update
0%
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
Updated by Bill Meeks almost 4 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.
Updated by Bill Meeks almost 4 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.