diff --git a/src/source-nfq.c b/src/source-nfq.c index 78b936d45c..ab22287e3f 100644 --- a/src/source-nfq.c +++ b/src/source-nfq.c @@ -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); } } diff --git a/src/stream-tcp.c b/src/stream-tcp.c index c2aa295d2c..1fed4ba370 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -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; }