]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Fix check if the IDS is running
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Aug 2018 17:18:01 +0000 (19:18 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Aug 2018 17:18:01 +0000 (19:18 +0200)
The correct function name is ids_is_running()!

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 6aa9ae9b93f719dbcdbff8245535659226b59bd9..61039f9dae410dbb723fd12926991946e10368ef 100644 (file)
@@ -256,7 +256,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
        &IDS::oinkmaster();
 
        # Check if the IDS is running.
-       if(&IDS::is_ids_running()) {
+       if(&IDS::ids_is_running()) {
                # Call suricatactrl to perform a reload.
                &IDS::call_suricatactrl("reload");
        }
@@ -296,7 +296,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
                        &IDS::oinkmaster();
 
                        # Check if the IDS is running.
-                       if(&IDS::is_ids_running()) {
+                       if(&IDS::ids_is_running()) {
                                # Call suricatactrl to perform a reload.
                                &IDS::call_suricatactrl("reload");
                        }