|
|
|
|
@ -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,
|
|
|
|
|
|