threshold: fix and redo tests

pull/2559/head
Victor Julien 9 years ago
parent 6f7e4adbe8
commit 59303d1fbb

@ -2463,7 +2463,6 @@ int DetectEngineReload(SCInstance *suri)
DetectEngineDeReference(&old_de_ctx);
return -1;
}
SCThresholdConfInitContext(new_de_ctx, NULL);
SCLogDebug("set up new_de_ctx %p", new_de_ctx);
/* add to master */

@ -203,6 +203,7 @@
#include "util-lua.h"
#include "util-var-name.h"
#include "util-classification-config.h"
#include "util-threshold-config.h"
#include "util-print.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
@ -517,6 +518,8 @@ int SigLoadSignatures(DetectEngineCtx *de_ctx, char *sig_file, int sig_file_excl
SCSigOrderSignatures(de_ctx);
SCSigSignatureOrderingModuleCleanup(de_ctx);
SCThresholdConfInitContext(de_ctx);
/* Setup the signature group lookup structure and pattern matchers */
if (SigGroupBuild(de_ctx) < 0)
goto end;

@ -2386,7 +2386,6 @@ static int LoadSignatures(DetectEngineCtx *de_ctx, SCInstance *suri)
return TM_ECODE_FAILED;
}
SCThresholdConfInitContext(de_ctx, NULL);
return TM_ECODE_OK;
}

File diff suppressed because it is too large Load Diff

@ -24,9 +24,8 @@
#ifndef __UTIL_THRESHOLD_CONFIG_H__
#define __UTIL_THRESHOLD_CONFIG_H__
void SCThresholdConfDeInitContext(DetectEngineCtx *, FILE *);
void SCThresholdConfParseFile(DetectEngineCtx *, FILE *);
int SCThresholdConfInitContext(DetectEngineCtx *, FILE *);
int SCThresholdConfInitContext(DetectEngineCtx *);
void SCThresholdConfRegisterTests();

Loading…
Cancel
Save