]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/cfgroot/ids-functions.pl
ids-functions.pl: Avoid suricata from loading rulesfiles of an
[ipfire-2.x.git] / config / cfgroot / ids-functions.pl
index f6627ba2bff29b5f94962f0d0c04c5bd65abcf21..3994d17808838fcdab57d390daee85ce4a9d7b1d 100644 (file)
@@ -1484,6 +1484,9 @@ sub write_used_rulefiles_file (@) {
 
        # Loop through the array of enabled providers.
        foreach my $provider (@providers) {
+               # Skip unsupported providers.
+               next unless ($IDS::Ruleset::Providers{$provider});
+
                # Get the used rulefile for this provider.
                my @used_rulesfiles = &get_provider_used_rulesfiles($provider);