From 171edda02acd1a20a1053073657b98a083b86074 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 6 Nov 2009 16:51:26 +0100 Subject: [PATCH] Fix compilation of address and port error messages in debug mode. --- src/detect-engine-address.c | 4 ++-- src/detect-engine-port.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detect-engine-address.c b/src/detect-engine-address.c index a208b77221..4e455aa684 100644 --- a/src/detect-engine-address.c +++ b/src/detect-engine-address.c @@ -774,7 +774,7 @@ int DetectAddressParse2(DetectAddressHead *gh, if (negate == 1 || n_set == 1) { temp_rule_var_address = malloc(strlen(rule_var_address) + 3); if (temp_rule_var_address == NULL) { - SCLogDebug(SC_ERR_MEM_ALLOC, "Error allocating memory"); + SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); goto error; } snprintf(temp_rule_var_address, strlen(rule_var_address) + 3, @@ -814,7 +814,7 @@ int DetectAddressParse2(DetectAddressHead *gh, if (negate == 1 || n_set == 1) { temp_rule_var_address = malloc(strlen(rule_var_address) + 3); if (temp_rule_var_address == NULL) { - SCLogDebug(SC_ERR_MEM_ALLOC, "Error allocating memory"); + SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); goto error; } snprintf(temp_rule_var_address, strlen(rule_var_address) + 3, diff --git a/src/detect-engine-port.c b/src/detect-engine-port.c index 6b8558efbc..5ac8df425a 100644 --- a/src/detect-engine-port.c +++ b/src/detect-engine-port.c @@ -1036,7 +1036,7 @@ static int DetectPortParseDo(DetectPort **head, DetectPort **nhead, char *s, if (negate == 1 || n_set == 1) { temp_rule_var_port = malloc(strlen(rule_var_port) + 3); if (temp_rule_var_port == NULL) { - SCLogDebug(SC_ERR_MEM_ALLOC, "Error allocating memory"); + SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); goto error; } snprintf(temp_rule_var_port, strlen(rule_var_port) + 3, @@ -1077,7 +1077,7 @@ static int DetectPortParseDo(DetectPort **head, DetectPort **nhead, char *s, if (negate == 1 || n_set == 1) { temp_rule_var_port = malloc(strlen(rule_var_port) + 3); if (temp_rule_var_port == NULL) { - SCLogDebug(SC_ERR_MEM_ALLOC, "Error allocating memory"); + SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); goto error; } snprintf(temp_rule_var_port, strlen(rule_var_port) + 3,