From 59923316bc2afd6a01c12f5c76d1f2c17c5f1977 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 29 Jul 2010 16:30:05 +0530 Subject: [PATCH] change the default recursion limit in the code to 3000, the value which we currently have in the conf file. Also change print modifier for printing timeval --- src/detect-engine-payload.c | 3 +-- src/detect-engine.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/detect-engine-payload.c b/src/detect-engine-payload.c index 075566dde2..98ffc3e78d 100644 --- a/src/detect-engine-payload.c +++ b/src/detect-engine-payload.c @@ -784,7 +784,6 @@ static int PayloadTestSig13(void) SigMatchSignatures(&th_v, de_ctx, det_ctx, p); if (PacketAlertCheck(p, de_ctx->sig_list->id) != 1) { - printf("signature didn't alert: "); goto end; } @@ -805,7 +804,7 @@ static int PayloadTestSig13(void) tv_diff.tv_sec = tv_end.tv_sec - tv_start.tv_sec; tv_diff.tv_usec = tv_end.tv_usec - tv_start.tv_usec; - printf("%"PRIuMAX".%06"PRIuMAX"\n", tv_diff.tv_sec, tv_diff.tv_usec); + printf("%ld.%06ld\n", tv_diff.tv_sec, tv_diff.tv_usec); result = 1; diff --git a/src/detect-engine.c b/src/detect-engine.c index 29883eac57..f6134cfd2e 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -54,7 +54,7 @@ #include "util-var-name.h" #include "tm-modules.h" -#define DETECT_ENGINE_DEFAULT_INSPECTION_RECURSION_LIMIT 10000 +#define DETECT_ENGINE_DEFAULT_INSPECTION_RECURSION_LIMIT 3000 static uint8_t DetectEngineCtxLoadConf(DetectEngineCtx *);