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

reference keyword.
pull/268/merge
Anoop Saldanha 12 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),
0, 0, ov, MAX_SUBSTRINGS);
if (ret < 2) {
SCLogError(SC_ERR_PCRE_MATCH, "pcre_exec parse error, "
"ret %" PRId32 ", string %s", ret, rawstr);
SCLogError(SC_ERR_INVALID_SIGNATURE, "Unable to parse \"reference\" "
"keyword argument - \"%s\". Invalid argument.", rawstr);
goto error;
}

Loading…
Cancel
Save