From 5fe9394d071b6c6b24cf8a3b05a2f1a1e6d800a0 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Sat, 2 Feb 2013 19:33:19 +0530 Subject: [PATCH] bug #737. Display a more apt error message when wrong argument's supplied to reference keyword. --- src/detect-reference.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect-reference.c b/src/detect-reference.c index 174b03c7f9..ee515a38a8 100644 --- a/src/detect-reference.c +++ b/src/detect-reference.c @@ -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; }