From 6abcb0d1fd4f329c350f5e78f8bca96182cae967 Mon Sep 17 00:00:00 2001 From: Pablo Rincon Date: Mon, 3 May 2010 21:21:15 +0200 Subject: [PATCH] http_heade fix, check first that we have a connp before checking transactions --- src/detect-http-header.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-http-header.c b/src/detect-http-header.c index 56c4d8e82e..31dbec39a5 100644 --- a/src/detect-http-header.c +++ b/src/detect-http-header.c @@ -74,7 +74,8 @@ int DetectHttpHeaderMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx, SCMutexLock(&f->m); - if (htp_state == NULL) { + if (htp_state == NULL || htp_state->connp == NULL || + htp_state->connp->conn == NULL) { SCLogDebug("No htp state, no match at http header data"); goto end; }