From 8cc792a3c70b5f3ec723c52b43a1cd1b908cc79b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 28 Dec 2009 14:34:06 +0100 Subject: [PATCH] Fix potential deadlock in http cookie match. --- src/detect-http-cookie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-http-cookie.c b/src/detect-http-cookie.c index c67c5e6621..1a113727d7 100644 --- a/src/detect-http-cookie.c +++ b/src/detect-http-cookie.c @@ -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);