diff --git a/src/detect-http-stat-msg.c b/src/detect-http-stat-msg.c index 53cbe551e1..720baccdb0 100644 --- a/src/detect-http-stat-msg.c +++ b/src/detect-http-stat-msg.c @@ -131,6 +131,9 @@ int DetectHttpStatMsgMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, if (tx == NULL) continue; + if (tx->response_message == NULL) + continue; + SCLogDebug("we have a response message"); /* call the case insensitive version if nocase has been specified in the sig */