Fix segv condition on DetectHttpMethodMatch (if the applayer unset the connp)

remotes/origin/master-1.0.x
Pablo Rincon 16 years ago committed by Victor Julien
parent f225bd1428
commit 8f3322ef73

@ -98,7 +98,7 @@ int DetectHttpMethodMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx,
htp_tx_t *tx = NULL; htp_tx_t *tx = NULL;
int ret = 0; int ret = 0;
if (hs == NULL) { if (hs == NULL || hs->connp == NULL || hs->connp->conn == NULL) {
SCLogDebug("No HTP state."); SCLogDebug("No HTP state.");
SCReturnInt(0); SCReturnInt(0);
} }

Loading…
Cancel
Save