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,