http_heade fix, check first that we have a connp before checking transactions

remotes/origin/master-1.0.x
Pablo Rincon 16 years ago committed by Victor Julien
parent 070ed778b8
commit 6abcb0d1fd

@ -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;
}

Loading…
Cancel
Save