Print also the Signature raw string

remotes/origin/master-1.0.x
Pablo Rincon 16 years ago committed by Victor Julien
parent 742f066fa2
commit cc8068be0a

@ -224,8 +224,8 @@ static int DetectHttpCookieSetup (DetectEngineCtx *de_ctx, Signature *s, char *s
/* http_cookie should not be used with the fast_pattern rule */ /* http_cookie should not be used with the fast_pattern rule */
if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_FAST_PATTERN) { if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_FAST_PATTERN) {
SCLogWarning(SC_WARN_COMPATIBILITY, "http_cookie rule can not " SCLogWarning(SC_WARN_COMPATIBILITY, "http_cookie rule can not "
"be used with the fast_pattern rule keyword. Unsetting fast_pattern" "be used with the fast_pattern rule keyword. "
"here"); "Unsetting fast_pattern on this modifier. Signature ==> %s", s->sig_str);
((DetectContentData *)pm->ctx)->flags &= ~DETECT_CONTENT_FAST_PATTERN; ((DetectContentData *)pm->ctx)->flags &= ~DETECT_CONTENT_FAST_PATTERN;
/* http_cookie should not be used with the rawbytes rule */ /* http_cookie should not be used with the rawbytes rule */
} else if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_RAWBYTES) { } else if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_RAWBYTES) {

@ -179,7 +179,7 @@ static int DetectHttpMethodSetup(DetectEngineCtx *de_ctx, Signature *s, char *st
{ {
SCLogWarning(SC_WARN_COMPATIBILITY, SCLogWarning(SC_WARN_COMPATIBILITY,
"http_method cannot be used with \"fast_pattern\" currently." "http_method cannot be used with \"fast_pattern\" currently."
"Unsetting fast_pattern on this modifier."); "Unsetting fast_pattern on this modifier. Signature ==> %s", s->sig_str);
((DetectContentData *)pm->ctx)->flags &= ~DETECT_CONTENT_FAST_PATTERN; ((DetectContentData *)pm->ctx)->flags &= ~DETECT_CONTENT_FAST_PATTERN;
} else if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_RAWBYTES) } else if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_RAWBYTES)
{ {

Loading…
Cancel
Save