From 1cc0ce1a36b99439f85c19b40175e7582bd5c235 Mon Sep 17 00:00:00 2001
From: Gurvinder Singh <gurvindersinghdahiya@gmail.com>
Date: Sun, 27 Dec 2009 17:41:15 +0530
Subject: [PATCH] fixed 23 bug

---
 src/detect-http-cookie.c |    4 ++++
 1 files changed, 4 insertions(+)

diff --git a/src/detect-http-cookie.c b/src/detect-http-cookie.c
index 2f40840..1ccab91 100644
--- a/src/detect-http-cookie.c
+++ b/src/detect-http-cookie.c
@@ -75,6 +75,10 @@ int DetectHttpCookieMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx,
         return 0;
     }
 
+    if (htp_state->connp->conn == NULL) {
+        SCLogDebug("HTTP connection structure is NULL");
+        return 0;
+    }
     int ret = 0;
     SCMutexLock(&f->m);
     htp_tx_t *tx = list_get(htp_state->connp->conn->transactions, 0);
-- 
1.6.0.4

