]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
SC_LOG_ERROR is not an error.
authorEric Leblond <eric@regit.org>
Fri, 7 Sep 2012 11:54:35 +0000 (13:54 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 8 Sep 2012 19:12:43 +0000 (21:12 +0200)
src/source-nfq.c
src/stream-tcp.c

index 78b936d45c49c497fe46543e316020a7e801d586..ab22287e3ff1d0373a50bb5c9ce2f6cf688f0303 100644 (file)
@@ -227,7 +227,7 @@ void NFQInitConfig(char quiet)
         }  else if (!strcmp("route", nfq_mode)) {
             nfq_config.mode = NFQ_ROUTE_MODE;
         } else {
-            SCLogError(SC_LOG_ERROR, "Unknown nfq.mode");
+            SCLogError(SC_ERR_INVALID_ARGUMENT, "Unknown nfq.mode");
             exit(EXIT_FAILURE);
         }
     }
index c2aa295d2c34b27c80699891f42e434909ec3bb0..1fed4ba370982869d9a662afd999200f5951795f 100644 (file)
@@ -5841,12 +5841,12 @@ char *StreamTcpParseOSPolicy (char *conf_var_name)
     if (snprintf(conf_var_full_name,
                  strlen(conf_var_type_name) + strlen(conf_var_name) + 2, "%s.%s",
                  conf_var_type_name, conf_var_name) < 0) {
-        SCLogError(SC_LOG_ERROR, "Error in making the conf full name");
+        SCLogError(SC_ERR_INVALID_VALUE, "Error in making the conf full name");
         goto end;
     }
 
     if (ConfGet(conf_var_full_name, &conf_var_value) != 1) {
-        SCLogError(SC_LOG_ERROR, "Error in getting conf value for conf name %s",
+        SCLogError(SC_ERR_UNKNOWN_VALUE, "Error in getting conf value for conf name %s",
                     conf_var_full_name);
         goto end;
     }