From 8f3322ef73f291f284bdf3e143ea2a7640cb8066 Mon Sep 17 00:00:00 2001 From: Pablo Rincon Date: Fri, 27 Aug 2010 18:35:17 +0200 Subject: [PATCH] Fix segv condition on DetectHttpMethodMatch (if the applayer unset the connp) --- src/detect-http-method.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-http-method.c b/src/detect-http-method.c index 1fbf786775..a11a104f3d 100644 --- a/src/detect-http-method.c +++ b/src/detect-http-method.c @@ -98,7 +98,7 @@ int DetectHttpMethodMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx, htp_tx_t *tx = NULL; int ret = 0; - if (hs == NULL) { + if (hs == NULL || hs->connp == NULL || hs->connp->conn == NULL) { SCLogDebug("No HTP state."); SCReturnInt(0); }