Don't inspect more methods than necessary.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 5535e083a0
commit 057031acce

@ -83,8 +83,8 @@ int DetectHttpMethodMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx,
} }
SCMutexLock(&f->m); SCMutexLock(&f->m);
for ( idx = hs->new_in_tx_index; for (idx = hs->new_in_tx_index;
idx < list_size(hs->connp->conn->transactions); idx++) idx < list_size(hs->connp->conn->transactions); idx++)
{ {
tx = list_get(hs->connp->conn->transactions, idx); tx = list_get(hs->connp->conn->transactions, idx);
if (tx == NULL) if (tx == NULL)
@ -107,6 +107,7 @@ int DetectHttpMethodMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx,
SCLogDebug("Matched raw HTTP method values."); SCLogDebug("Matched raw HTTP method values.");
ret = 1; ret = 1;
break;
} }
} }
} }

Loading…
Cancel
Save