Project

General

Profile

Actions

Bug #13870

closed

pfSense-pkg-suricata-6.0.8_5 error in /usr/local/pkg/suricata/suricata.inc(4261)

Added by Brian Macy almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
Suricata
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

        // OpenVPN CSO
        foreach (config_get_path('openvpn/openvpn-csc', []) as $ovpnent) {
                if (is_array($ovpnent) && !config_path_enabled($ovpnent, 'disable')) {
                        if (!empty($ovpnent['tunnel_network'])) {

Not sure what the is supposed to be but config_path_enabled takes a string but is it be called only if $ovpnent is an array. This causes crashes constantly.

PHP ERROR: Type: 1, File: /etc/inc/config.lib.inc, Line: 1256, Message: Uncaught TypeError: config_path_enabled(): Argument #1 ($path) must be of type string, array given, called in /usr/local/pkg/suricata/suricata.inc on line 4261 and defined in /etc/inc/config.lib.inc:1256
Stack trace:
#0 /usr/local/pkg/suricata/suricata.inc(4261): config_path_enabled(Array, 'disable')
#1 /usr/local/pkg/suricata/suricata.inc(576): suricata_get_vpns_list()
#2 /usr/local/pkg/suricata/suricata_generate_yaml.php(46): suricata_build_list(Array, 'default')
#3 /usr/local/pkg/suricata/suricata_post_install.php(168): include('/usr/local/pkg/...')
#4 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): include_once('/usr/local/pkg/...')
#5 /etc/inc/pkg-utils.inc(781): eval()
#6 /etc/inc/pkg-utils.inc(899): eval_once('include_once("/...')
#7 /etc/rc.packages(76): install_package_xml('suricata')
#8 {main}
thrown @ 2023-01-14 05:45:35

Actions

Also available in: Atom PDF