Fix potential deadlock in http cookie match.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent f729d6f7b3
commit 8cc792a3c7

@ -79,7 +79,8 @@ int DetectHttpCookieMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx,
SCMutexLock(&f->m);
if (htp_state->connp == NULL && htp_state->connp->conn == NULL) {
SCLogDebug("HTTP connection structure is NULL");
return 0;
ret = 0;
goto end;
}
htp_tx_t *tx = list_get(htp_state->connp->conn->transactions, 0);

Loading…
Cancel
Save