mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
493 B
C
28 lines
493 B
C
17 years ago
|
/* Copyright (C) 2008 by Victor Julien <victor@inliniac.net> */
|
||
|
|
||
|
#include "vips.h"
|
||
|
#include "debug.h"
|
||
|
#include "detect.h"
|
||
|
#include "flow.h"
|
||
|
|
||
|
#include "detect-parse.h"
|
||
|
#include "detect-siggroup.h"
|
||
|
|
||
|
#include "detect-address.h"
|
||
|
|
||
|
DetectEngineCtx *DetectEngineCtxInit(void) {
|
||
|
DetectEngineCtx *de_ctx;
|
||
|
|
||
|
de_ctx = malloc(sizeof(DetectEngineCtx));
|
||
|
if (de_ctx == NULL) {
|
||
|
goto error;
|
||
|
}
|
||
|
|
||
|
memset(de_ctx,0,sizeof(DetectEngineCtx));
|
||
|
|
||
|
return de_ctx;
|
||
|
error:
|
||
|
return NULL;
|
||
|
}
|
||
|
|