bug #737. Display a more apt error message when wrong argument's supplied to

reference keyword.
pull/268/merge
Anoop Saldanha 13 years ago committed by Victor Julien
parent bf0ebcbef7
commit 5fe9394d07

@ -124,8 +124,8 @@ static DetectReference *DetectReferenceParse(char *rawstr, DetectEngineCtx *de_c
ret = pcre_exec(parse_regex, parse_regex_study, rawstr, strlen(rawstr), ret = pcre_exec(parse_regex, parse_regex_study, rawstr, strlen(rawstr),
0, 0, ov, MAX_SUBSTRINGS); 0, 0, ov, MAX_SUBSTRINGS);
if (ret < 2) { if (ret < 2) {
SCLogError(SC_ERR_PCRE_MATCH, "pcre_exec parse error, " SCLogError(SC_ERR_INVALID_SIGNATURE, "Unable to parse \"reference\" "
"ret %" PRId32 ", string %s", ret, rawstr); "keyword argument - \"%s\". Invalid argument.", rawstr);
goto error; goto error;
} }

Loading…
Cancel
Save