From 0e83759ed42bcdb6c70c4125a50474980e06eb84 Mon Sep 17 00:00:00 2001 From: Pablo Rincon Date: Wed, 30 Dec 2009 14:53:13 +0100 Subject: [PATCH] Small fix --- src/detect-pcre.c | 3 --- src/detect-pcre.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/detect-pcre.c b/src/detect-pcre.c index f7bb153a78..92b5caa5ae 100644 --- a/src/detect-pcre.c +++ b/src/detect-pcre.c @@ -387,9 +387,6 @@ DetectPcreData *DetectPcreParseCapture(char *regexstr, DetectEngineCtx *de_ctx, //printf("DetectPcreParseCapture: type \'%s\'\n", type_str_ptr ? type_str_ptr : "NULL"); //printf("DetectPcreParseCapture: capture \'%s\'\n", capture_str_ptr ? capture_str_ptr : "NULL"); - pd->depth = 0; - pd->flags = 0; - if (capture_str_ptr != NULL) { pd->capname = strdup((char *)capture_str_ptr); } diff --git a/src/detect-pcre.h b/src/detect-pcre.h index 580ba04287..8fa4a2cc54 100644 --- a/src/detect-pcre.h +++ b/src/detect-pcre.h @@ -4,7 +4,6 @@ #define DETECT_PCRE_DISTANCE 0x0001 #define DETECT_PCRE_WITHIN 0x0002 #define DETECT_PCRE_RELATIVE 0x0004 -#define DETECT_PCRE_MATCH_LIMIT 0x0006 #define DETECT_PCRE_DISTANCE_NEXT 0x0008 #define DETECT_PCRE_WITHIN_NEXT 0x0010 @@ -14,6 +13,7 @@ #define DETECT_PCRE_CAPTURE_PKT 0x0080 #define DETECT_PCRE_CAPTURE_FLOW 0x0100 +#define DETECT_PCRE_MATCH_LIMIT 0x0200 typedef struct DetectPcreData_ { /* pcre options */