Fix invalid direction error message.

remotes/origin/master-1.2.x
Victor Julien 14 years ago
parent 801f92f705
commit e0cf2ccb91

@ -963,7 +963,7 @@ static int SigParseBasics(Signature *s, char *sigstr, char ***result, uint8_t ad
goto error;
if (strcmp(arr[CONFIG_DIREC], "<-") == 0) {
SCLogError(SC_ERR_INVALID_DIRECTION, "\"->\" is not a valid direction modifier, \"->\" and \"<>\" are supported.");
SCLogError(SC_ERR_INVALID_DIRECTION, "\"<-\" is not a valid direction modifier, \"->\" and \"<>\" are supported.");
goto error;
}
@ -980,7 +980,7 @@ static int SigParseBasics(Signature *s, char *sigstr, char ***result, uint8_t ad
/* For IPOnly */
if (IPOnlySigParseAddress(s, arr[CONFIG_SRC], SIG_DIREC_SRC ^ addrs_direction) < 0)
goto error;
goto error;
if (IPOnlySigParseAddress(s, arr[CONFIG_DST], SIG_DIREC_DST ^ addrs_direction) < 0)
goto error;

Loading…
Cancel
Save