uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
Flow f;
TcpSession ssn;
int result = 0;
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
Flow f;
TcpSession ssn;
int result = 0;
SigGroupCleanup(de_ctx);
SigCleanSignatures(de_ctx);
- DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
+ if (det_ctx)
+ DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
if (alp_tctx != NULL)
AppLayerParserDestroyCtxThread(alp_tctx);
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
Flow f;
TcpSession ssn;
void *alp_tctx = AppLayerParserGetCtxThread();
FlowCleanupAppLayer(&f);
SigGroupCleanup(de_ctx);
SigCleanSignatures(de_ctx);
- DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
+ if (det_ctx)
+ DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
if (alp_tctx != NULL)
AppLayerParserDestroyCtxThread(alp_tctx);
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
Flow f;
TcpSession ssn;
int result = 0;
FlowCleanupAppLayer(&f);
SigGroupCleanup(de_ctx);
SigCleanSignatures(de_ctx);
- DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
+ if (det_ctx)
+ DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
if (alp_tctx != NULL)
AppLayerParserDestroyCtxThread(alp_tctx);
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
Flow f;
TcpSession ssn;
int result = 0;
end:
FlowCleanupAppLayer(&f);
SigGroupCleanup(de_ctx);
- DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
+ if (det_ctx)
+ DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
UTHFreePackets(&p, 1);
StreamTcpFreeConfig(TRUE);
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
static int SigTest22Real (int mpm_type) {
ThreadVars th_v;
memset(&th_v, 0, sizeof(th_v));
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
Flow f;
static int SigTest23Real (int mpm_type) {
ThreadVars th_v;
memset(&th_v, 0, sizeof(th_v));
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
Flow f;
return 0;
}
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 1;
uint8_t *buf = (uint8_t *)"GET /one/ HTTP/1.0\r\n"
return 0;
}
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 1;
uint8_t *buf = (uint8_t *)"GET /one/ HTTP/1.0\r\n"
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
PacketQueue pq;
Flow f;
int result = 0;
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 1;
memset(&th_v, 0, sizeof(th_v));
if (unlikely(p == NULL))
return 0;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
static int SigTestSgh01 (void) {
ThreadVars th_v;
int result = 0;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
memset(&th_v, 0, sizeof(th_v));
Packet *p = NULL;
static int SigTestSgh02 (void) {
ThreadVars th_v;
int result = 0;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
Packet *p = NULL;
p = UTHBuildPacketSrcDstPorts((uint8_t *)"a", 1, IPPROTO_TCP, 12345, 80);
Packet *p = SCMalloc(SIZE_OF_PACKET);
if (unlikely(p == NULL))
return 0;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
memset(&th_v, 0, sizeof(th_v));
memset(p, 0, SIZE_OF_PACKET);
Packet *p = SCMalloc(SIZE_OF_PACKET);
if (unlikely(p == NULL))
return 0;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
memset(&th_v, 0, sizeof(th_v));
memset(p, 0, SIZE_OF_PACKET);
Packet *p = SCMalloc(SIZE_OF_PACKET);
if (unlikely(p == NULL))
return 0;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
memset(&th_v, 0, sizeof(th_v));
memset(p, 0, SIZE_OF_PACKET);
uint8_t *buf = (uint8_t *)"01234567890123456789012345678901";
uint16_t buflen = strlen((char *)buf);
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint8_t *buf = (uint8_t *)"01234567890123456789012345678901";
uint16_t buflen = strlen((char *)buf);
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint8_t *buf = (uint8_t *)"01234567890123456789012345678901abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
uint16_t buflen = strlen((char *)buf);
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint8_t *buf = (uint8_t *)"01234567890123456789012345678901abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
uint16_t buflen = strlen((char *)buf);
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint8_t *buf = (uint8_t *)"01234567890123456789012345678901abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
uint16_t buflen = strlen((char *)buf);
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));
uint16_t buflen = strlen((char *)buf);
Packet *p = NULL;
ThreadVars th_v;
- DetectEngineThreadCtx *det_ctx;
+ DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
memset(&th_v, 0, sizeof(th_v));