From 6303b5d987ef9cd78f697523b5751296efa66646 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 7 Sep 2012 13:54:35 +0200 Subject: [PATCH] SC_LOG_ERROR is not an error. --- src/source-nfq.c | 2 +- src/stream-tcp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }