From f5743afed518e8323844e23bcf2550667539feef Mon Sep 17 00:00:00 2001 From: Gerardo Iglesias Galvan Date: Thu, 14 Jan 2010 13:58:12 +0100 Subject: [PATCH] Fix logging messages related to icmp_id parsing --- src/detect-icmp-id.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detect-icmp-id.c b/src/detect-icmp-id.c index a7b6dfad88..19cda2d838 100644 --- a/src/detect-icmp-id.c +++ b/src/detect-icmp-id.c @@ -127,7 +127,7 @@ DetectIcmpIdData *DetectIcmpIdParse (char *icmpidstr) { ret = pcre_exec(parse_regex, parse_regex_study, icmpidstr, strlen(icmpidstr), 0, 0, ov, MAX_SUBSTRINGS); if (ret < 1 || ret > 4) { - SCLogError(SC_PCRE_MATCH_FAILED, "DetectIcmpIdParse: parse error"); + SCLogError(SC_PCRE_MATCH_FAILED, "Parse error %s", icmpidstr); goto error; } @@ -136,7 +136,7 @@ DetectIcmpIdData *DetectIcmpIdParse (char *icmpidstr) { for (i = 1; i < ret; i++) { res = pcre_get_substring((char *)icmpidstr, ov, MAX_SUBSTRINGS, i, &str_ptr); if (res < 0) { - SCLogError(SC_PCRE_GET_SUBSTRING_FAILED, "DetectIcmpIdParse: pcre_get_substring failed"); + SCLogError(SC_PCRE_GET_SUBSTRING_FAILED, "pcre_get_substring failed"); goto error; } substr[i-1] = (char *)str_ptr; @@ -151,12 +151,12 @@ DetectIcmpIdData *DetectIcmpIdParse (char *icmpidstr) { if (strlen(substr[0]) != 0) { if (substr[2] == NULL) { - SCLogError(SC_INVALID_ARGUMENT, "DetectIcmpIdParse: Missing close quote in input"); + SCLogError(SC_INVALID_ARGUMENT, "Missing close quote in input"); goto error; } } else { if (substr[2] != NULL) { - SCLogError(SC_INVALID_ARGUMENT, "DetectIcmpIdParse: Missing open quote in input"); + SCLogError(SC_INVALID_ARGUMENT, "Missing open quote in input"); goto error; } }