From 79b15bd1ccc714ed8908a5eb0560b733285ad840 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 28 Dec 2009 14:38:59 +0100 Subject: [PATCH] fix typo --- src/detect-http-cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-http-cookie.c b/src/detect-http-cookie.c index 1a113727d7..2aae7127ee 100644 --- a/src/detect-http-cookie.c +++ b/src/detect-http-cookie.c @@ -77,7 +77,7 @@ int DetectHttpCookieMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, int ret = 0; SCMutexLock(&f->m); - if (htp_state->connp == NULL && htp_state->connp->conn == NULL) { + if (htp_state->connp == NULL || htp_state->connp->conn == NULL) { SCLogDebug("HTTP connection structure is NULL"); ret = 0; goto end;