Update tests to use AppLayerParserThreadCtx ptr instead of void. Fix a few bugs uncovered by this.

pull/753/head
Victor Julien 13 years ago
parent 9634e60e7a
commit 8dbf7a0d78

@ -1042,7 +1042,7 @@ int DCERPCUDPParserTest01(void) {
TcpSession ssn;
DCERPCUuidEntry *uuid_entry;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));

@ -2395,7 +2395,7 @@ int DCERPCParserTest01(void) {
uint32_t bindacklen = sizeof(dcerpcbindack);
TcpSession ssn;
DCERPCUuidEntry *uuid_entry;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2626,7 +2626,7 @@ int DCERPCParserTest02(void) {
uint32_t requestlen = sizeof(dcerpcrequest);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2825,7 +2825,7 @@ int DCERPCParserTest03(void) {
uint32_t requestlen = sizeof(dcerpcrequest);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4005,7 +4005,7 @@ int DCERPCParserTest04(void) {
uint32_t request9_len = sizeof(request9);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4272,7 +4272,7 @@ int DCERPCParserTest05(void) {
uint32_t bind2_len = sizeof(bind2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4446,7 +4446,7 @@ int DCERPCParserTest06(void) {
uint32_t bind2_len = sizeof(bind2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4531,7 +4531,7 @@ int DCERPCParserTest07(void) {
uint32_t request3_len = sizeof(request3);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4622,7 +4622,7 @@ int DCERPCParserTest08(void) {
uint32_t request_len = sizeof(request);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4681,7 +4681,7 @@ int DCERPCParserTest09(void) {
uint32_t request_len = sizeof(request);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4754,7 +4754,7 @@ int DCERPCParserTest10(void) {
uint32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4854,7 +4854,7 @@ int DCERPCParserTest11(void) {
uint32_t request3_len = sizeof(request3);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -4952,7 +4952,7 @@ int DCERPCParserTest12(void) {
uint32_t bind_ack2_len = sizeof(bind_ack2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -5029,7 +5029,7 @@ int DCERPCParserTest13(void) {
uint32_t bind_len = sizeof(bind);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -5119,7 +5119,7 @@ int DCERPCParserTest14(void) {
uint32_t bind_len = sizeof(bind);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -5180,7 +5180,7 @@ int DCERPCParserTest15(void) {
uint32_t bind_ack_len = sizeof(bind_ack);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -5630,7 +5630,7 @@ int DCERPCParserTest16(void) {
TcpSession ssn;
DCERPCUuidEntry *item = NULL;
int count = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
uint8_t accepted_uuids[3][16] = {
{0x4b, 0x32, 0x4f, 0xc8, 0x16, 0x70, 0x01, 0xd3,
@ -5877,7 +5877,7 @@ int DCERPCParserTest17(void) {
TcpSession ssn;
DCERPCUuidEntry *item = NULL;
int count = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
uint8_t accepted_uuids[2][16] = {
{0x57, 0x67, 0x4c, 0xd0, 0x52, 0x00, 0x11, 0xce,
@ -6030,7 +6030,7 @@ int DCERPCParserTest18(void) {
uint32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -6296,7 +6296,7 @@ int DCERPCParserTest19(void)
uint32_t bindlen = sizeof(dcerpcbind);
uint32_t bindacklen = sizeof(dcerpcbindack);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));

@ -3137,7 +3137,7 @@ static int AppLayerProtoDetectTest16(void)
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
DetectEngineCtx *de_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&ssn, 0, sizeof(TcpSession));
@ -3239,7 +3239,7 @@ static int AppLayerProtoDetectTest17(void)
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
DetectEngineCtx *de_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&ssn, 0, sizeof(TcpSession));
@ -3335,7 +3335,7 @@ static int AppLayerProtoDetectTest18(void)
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
DetectEngineCtx *de_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&ssn, 0, sizeof(TcpSession));
@ -3427,7 +3427,7 @@ static int AppLayerProtoDetectTest19(void)
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
DetectEngineCtx *de_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&ssn, 0, sizeof(TcpSession));
@ -3515,7 +3515,7 @@ static int AppLayerProtoDetectTest20(void)
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
DetectEngineCtx *de_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&ssn, 0, sizeof(TcpSession));

@ -365,7 +365,7 @@ int FTPParserTest01(void) {
uint8_t ftpbuf[] = "PORT 192,168,1,1,0,80\r\n";
uint32_t ftplen = sizeof(ftpbuf) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -418,7 +418,7 @@ int FTPParserTest03(void) {
uint8_t ftpbuf3[] = "1,1,10,20\r\n";
uint32_t ftplen3 = sizeof(ftpbuf3) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -484,7 +484,7 @@ int FTPParserTest06(void) {
uint8_t ftpbuf1[] = "PORT";
uint32_t ftplen1 = sizeof(ftpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -535,7 +535,7 @@ int FTPParserTest07(void) {
uint8_t ftpbuf2[] = "RT\r\n";
uint32_t ftplen2 = sizeof(ftpbuf2) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -596,7 +596,7 @@ int FTPParserTest10(void) {
uint8_t ftpbuf1[] = "PORT 1,2,3,4,5,6\r\n";
uint32_t ftplen1 = sizeof(ftpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));

@ -311,7 +311,7 @@ static int HTPFileParserTest01(void) {
uint32_t httplen2 = sizeof(httpbuf2) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *http_state = NULL;
memset(&ssn, 0, sizeof(ssn));
@ -402,7 +402,7 @@ static int HTPFileParserTest02(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -525,7 +525,7 @@ static int HTPFileParserTest03(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -675,7 +675,7 @@ static int HTPFileParserTest04(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -811,7 +811,7 @@ static int HTPFileParserTest05(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -935,7 +935,7 @@ static int HTPFileParserTest06(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -1048,7 +1048,7 @@ static int HTPFileParserTest07(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -1148,7 +1148,7 @@ static int HTPFileParserTest08(void) {
uint32_t httplen2 = sizeof(httpbuf2) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *http_state = NULL;
memset(&ssn, 0, sizeof(ssn));
@ -1243,7 +1243,7 @@ static int HTPFileParserTest09(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -1358,7 +1358,7 @@ static int HTPFileParserTest10(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -1496,7 +1496,7 @@ static int HTPFileParserTest11(void) {
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));

@ -2753,7 +2753,7 @@ int HTPParserTest01(void) {
TcpSession ssn;
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -2828,7 +2828,7 @@ int HTPParserTest02(void) {
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -2888,7 +2888,7 @@ int HTPParserTest03(void) {
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -2959,7 +2959,7 @@ int HTPParserTest04(void) {
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3029,7 +3029,7 @@ int HTPParserTest05(void) {
uint8_t httpbuf6[] = "esults are tha bomb!";
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3181,7 +3181,7 @@ int HTPParserTest06(void) {
uint32_t httplen2 = sizeof(httpbuf2) - 1; /* minus the \0 */
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3262,7 +3262,7 @@ int HTPParserTest07(void) {
TcpSession ssn;
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3350,7 +3350,7 @@ int HTPParserTest08(void) {
uint8_t httpbuf1[] = "GET /secondhouse/image/js/\%ce\%de\%ce\%fd_RentCity.js?v=2011.05.02 HTTP/1.0\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
char input[] = "\
%YAML 1.1\n\
@ -3435,7 +3435,7 @@ int HTPParserTest09(void) {
uint8_t httpbuf1[] = "GET /secondhouse/image/js/\%ce\%de\%ce\%fd_RentCity.js?v=2011.05.02 HTTP/1.0\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
char input[] = "\
%YAML 1.1\n\
@ -3523,7 +3523,7 @@ int HTPParserTest10(void) {
TcpSession ssn;
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3614,7 +3614,7 @@ static int HTPParserTest11(void) {
TcpSession ssn;
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3698,7 +3698,7 @@ static int HTPParserTest12(void) {
TcpSession ssn;
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -3785,7 +3785,7 @@ int HTPParserTest13(void) {
TcpSession ssn;
HtpState *htp_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -4155,7 +4155,7 @@ int HTPParserConfigTest03(void)
" Data is c0oL!";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -4370,7 +4370,7 @@ static int HTPParserDecodingTest01(void)
"GET /abc/def?ghi%252fjkl HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -4539,7 +4539,7 @@ static int HTPParserDecodingTest02(void)
"GET /abc/def?ghi%252fjkl HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -4708,7 +4708,7 @@ static int HTPParserDecodingTest03(void)
"GET /abc/def?ghi%252fjkl HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -4847,7 +4847,7 @@ static int HTPParserDecodingTest04(void)
"GET /abc/def?a=http://www.abc.com/ HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -4959,7 +4959,7 @@ static int HTPParserDecodingTest05(void)
"GET /index?id=\\\"<script>alert(document.cookie)</script> HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -5071,7 +5071,7 @@ static int HTPParserDecodingTest06(void)
"GET /put.php?ip=1.2.3.4&port=+6000 HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -5183,7 +5183,7 @@ static int HTPParserDecodingTest07(void)
"GET /put.php?ip=1.2.3.4&port=+6000 HTTP/1.1\r\nHost: www.domain.ltd\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -5296,7 +5296,7 @@ static int HTPParserDecodingTest08(void)
"GET http://suricata-ids.org/blah/ HTTP/1.1\r\nHost: suricata-ids.org\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -5406,7 +5406,7 @@ static int HTPParserDecodingTest09(void)
"GET http://suricata-ids.org/blah/ HTTP/1.1\r\nHost: suricata-ids.org\r\n\r\n";
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
HtpState *htp_state = NULL;
int r = 0;
@ -5587,7 +5587,7 @@ libhtp:\n\
TcpSession ssn;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -5671,7 +5671,7 @@ libhtp:\n\
request-body-limit: 0\n\
response-body-limit: 0\n\
";
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -5814,7 +5814,7 @@ libhtp:\n\
response-body-limit: 0\n\
meta-field-limit: 20000\n\
";
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));

@ -1081,7 +1081,7 @@ static int AppLayerParserTest01(void)
uint8_t testbuf[] = { 0x11 };
uint32_t testlen = sizeof(testbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&ssn, 0, sizeof(ssn));
@ -1136,7 +1136,7 @@ static int AppLayerParserTest02(void)
Flow *f = NULL;
uint8_t testbuf[] = { 0x11 };
uint32_t testlen = sizeof(testbuf);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
/* Register the Test protocol state and parser functions */
AppLayerParserRegisterParser(IPPROTO_UDP, ALPROTO_TEST, STREAM_TOSERVER,

@ -1591,7 +1591,7 @@ int SMBParserTest01(void) {
uint32_t smblen = sizeof(smbbuf) - 1;
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1667,7 +1667,7 @@ int SMBParserTest02(void) {
uint32_t smblen = sizeof(smbbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1962,7 +1962,7 @@ int SMBParserTest03(void) {
uint32_t smblen2 = sizeof(smbbuf2);
uint32_t smblen3 = sizeof(smbbuf3);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2078,7 +2078,7 @@ int SMBParserTest04(void) {
uint32_t smblen3 = sizeof(smbbuf3);
uint32_t smblen4 = sizeof(smbbuf4);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2332,7 +2332,7 @@ int SMBParserTest07(void) {
};
uint32_t smblen1 = sizeof(smbbuf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2405,7 +2405,7 @@ int SMBParserTest08(void) {
uint32_t smblen1 = sizeof(smbbuf1);
uint32_t smblen2 = sizeof(smbbuf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2518,7 +2518,7 @@ int SMBParserTest09(void) {
uint32_t smblen1 = sizeof(smbbuf1);
uint32_t smblen2 = sizeof(smbbuf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2640,7 +2640,7 @@ int SMBParserTest10(void)
uint32_t smblen1 = sizeof(smbbuf1);
uint32_t smblen2 = sizeof(smbbuf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int r = 0;
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));

@ -622,7 +622,7 @@ int SMB2ParserTest01(void) {
uint32_t smb2len = sizeof(smb2buf) - 1;
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));

@ -1004,7 +1004,7 @@ int SMTPParserTest01(void)
uint32_t reply2_len = sizeof(reply2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1362,7 +1362,7 @@ int SMTPParserTest02(void)
uint32_t reply10_len = sizeof(reply10);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1996,7 +1996,7 @@ int SMTPParserTest03(void)
uint32_t reply2_len = sizeof(reply2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2143,7 +2143,7 @@ int SMTPParserTest04(void)
uint32_t request1_len = sizeof(request1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2290,7 +2290,7 @@ int SMTPParserTest05(void)
uint32_t reply3_len = sizeof(reply3);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2586,7 +2586,7 @@ int SMTPParserTest06(void)
uint32_t request6_len = sizeof(request6);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2824,7 +2824,7 @@ int SMTPParserTest07(void)
int32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2937,7 +2937,7 @@ int SMTPParserTest08(void)
int32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -3050,7 +3050,7 @@ int SMTPParserTest09(void)
int32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -3163,7 +3163,7 @@ int SMTPParserTest10(void)
int32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -3270,7 +3270,7 @@ int SMTPParserTest11(void)
int32_t request2_len = sizeof(request2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -3360,7 +3360,7 @@ int SMTPParserTest12(void)
};
uint32_t reply1_len = sizeof(reply1);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3499,7 +3499,7 @@ int SMTPParserTest13(void)
};
uint32_t request2_len = sizeof(request2);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -1239,7 +1239,7 @@ static int SSLParserTest01(void)
uint8_t tlsbuf[] = { 0x16, 0x03, 0x01 };
uint32_t tlslen = sizeof(tlsbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1295,7 +1295,7 @@ static int SSLParserTest02(void)
uint8_t tlsbuf2[] = { 0x03, 0x01 };
uint32_t tlslen2 = sizeof(tlsbuf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1363,7 +1363,7 @@ static int SSLParserTest03(void)
uint8_t tlsbuf3[] = { 0x01 };
uint32_t tlslen3 = sizeof(tlsbuf3);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1443,7 +1443,7 @@ static int SSLParserTest04(void)
uint8_t tlsbuf4[] = { 0x01, 0x00, 0x00, 0xad, 0x03, 0x01 };
uint32_t tlslen4 = sizeof(tlsbuf4);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1529,7 +1529,7 @@ static int SSLParserTest05(void)
uint8_t tlsbuf[] = { 0x16, 0x03, 0x01, 0x00, 0x01 };
uint32_t tlslen = sizeof(tlsbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1638,7 +1638,7 @@ static int SSLParserTest06(void)
uint8_t tlsbuf[] = { 0x16, 0x03, 0x01, 0x00, 0x01 };
uint32_t tlslen = sizeof(tlsbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1787,7 +1787,7 @@ static int SSLParserMultimsgTest01(void)
};
uint32_t tlslen1 = sizeof(tlsbuf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1868,7 +1868,7 @@ static int SSLParserMultimsgTest02(void)
};
uint32_t tlslen1 = sizeof(tlsbuf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1938,7 +1938,7 @@ static int SSLParserTest07(void)
0x00, 0x0a, 0x00, 0x02, 0x01, 0x00 };
uint32_t tlslen = sizeof(tlsbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -1995,7 +1995,7 @@ static int SSLParserTest08(void)
uint8_t tlsbuf[] = { 0x16, 0x03, 0x00, 0x00, 0x01 };
uint32_t tlslen = sizeof(tlsbuf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2124,7 +2124,7 @@ static int SSLParserTest09(void)
};
uint32_t buf2_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2212,7 +2212,7 @@ static int SSLParserTest10(void)
};
uint32_t buf2_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2299,7 +2299,7 @@ static int SSLParserTest11(void)
};
uint32_t buf2_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2391,7 +2391,7 @@ static int SSLParserTest12(void)
};
uint32_t buf3_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2498,7 +2498,7 @@ static int SSLParserTest13(void)
};
uint32_t buf4_len = sizeof(buf4);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2594,7 +2594,7 @@ static int SSLParserTest14(void)
uint32_t buf2_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2651,7 +2651,7 @@ static int SSLParserTest15(void)
uint32_t buf1_len = sizeof(buf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2691,7 +2691,7 @@ static int SSLParserTest16(void)
uint32_t buf1_len = sizeof(buf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2731,7 +2731,7 @@ static int SSLParserTest17(void)
uint32_t buf1_len = sizeof(buf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2777,7 +2777,7 @@ static int SSLParserTest18(void)
uint32_t buf2_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2835,7 +2835,7 @@ static int SSLParserTest19(void)
uint32_t buf1_len = sizeof(buf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2883,7 +2883,7 @@ static int SSLParserTest20(void)
uint32_t buf1_len = sizeof(buf1);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2923,7 +2923,7 @@ static int SSLParserTest21(void)
uint32_t buf_len = sizeof(buf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -2988,7 +2988,7 @@ static int SSLParserTest22(void)
0x2f, 0x34, 0x84, 0x20, 0xc5};
uint32_t buf_len = sizeof(buf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
//AppLayerDetectProtoThreadInit();
@ -3293,7 +3293,7 @@ static int SSLParserTest23(void)
uint32_t toserver_app_data_buf_len = sizeof(toserver_app_data_buf);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
//AppLayerDetectProtoThreadInit();
@ -3544,7 +3544,7 @@ static int SSLParserTest24(void)
};
uint32_t buf2_len = sizeof(buf2);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -3923,7 +3923,7 @@ static int SSLParserTest25(void)
uint32_t client_key_exchange_cipher_enc_hs_len = sizeof(client_key_exchange_cipher_enc_hs);
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));

@ -889,7 +889,7 @@ static int DetectDceIfaceTestParse12(void)
uint32_t dcerpc_bindack_len = sizeof(dcerpc_bindack);
uint32_t dcerpc_request_len = sizeof(dcerpc_request);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1135,7 +1135,7 @@ static int DetectDceIfaceTestParse13(void)
uint32_t dcerpc_request3_len = sizeof(dcerpc_request3);
uint32_t dcerpc_response3_len = sizeof(dcerpc_response3);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -1396,7 +1396,7 @@ static int DetectDceIfaceTestParse14(void)
uint32_t dcerpc_bindack_len = sizeof(dcerpc_bindack);
uint32_t dcerpc_request_len = sizeof(dcerpc_request);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -1599,7 +1599,7 @@ static int DetectDceIfaceTestParse15(void)
};
uint32_t dcerpc_request2_len = sizeof(dcerpc_request2);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));

@ -1139,7 +1139,7 @@ static int DetectDceOpnumTestParse08(void)
uint32_t dcerpc_bindack_len = sizeof(dcerpc_bindack);
uint32_t dcerpc_request_len = sizeof(dcerpc_request);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1678,7 +1678,7 @@ static int DetectDceOpnumTestParse09(void)
uint32_t dcerpc_request_len = sizeof(dcerpc_request);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1885,7 +1885,7 @@ static int DetectDceOpnumTestParse10(void)
uint32_t dcerpc_request3_len = sizeof(dcerpc_request3);
uint32_t dcerpc_response3_len = sizeof(dcerpc_response3);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2180,7 +2180,7 @@ static int DetectDceOpnumTestParse11(void)
uint32_t dcerpc_request3_len = sizeof(dcerpc_request3);
uint32_t dcerpc_response3_len = sizeof(dcerpc_response3);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2458,7 +2458,7 @@ static int DetectDceOpnumTestParse12(void)
uint32_t dcerpc_request2_len = sizeof(dcerpc_request2);
uint32_t dcerpc_response2_len = sizeof(dcerpc_response2);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2745,7 +2745,7 @@ static int DetectDceOpnumTestParse13(void)
uint32_t dcerpc_request2_len = sizeof(dcerpc_request2);
uint32_t dcerpc_response2_len = sizeof(dcerpc_response2);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -584,7 +584,7 @@ static int DetectDceStubDataTestParse02(void)
uint32_t dcerpc_bind_len = sizeof(dcerpc_bind);
uint32_t dcerpc_bindack_len = sizeof(dcerpc_bindack);
uint32_t dcerpc_request_len = sizeof(dcerpc_request);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1139,7 +1139,7 @@ static int DetectDceStubDataTestParse03(void)
uint32_t dcerpc_request_len = sizeof(dcerpc_request);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1340,7 +1340,7 @@ static int DetectDceStubDataTestParse04(void)
uint32_t dcerpc_request3_len = sizeof(dcerpc_request3);
uint32_t dcerpc_response3_len = sizeof(dcerpc_response3);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1641,7 +1641,7 @@ static int DetectDceStubDataTestParse05(void)
uint32_t dcerpc_request3_len = sizeof(dcerpc_request3);
uint32_t dcerpc_response3_len = sizeof(dcerpc_response3);
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -147,7 +147,7 @@ static int DetectDnsQueryTest01(void) {
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -260,7 +260,7 @@ static int DetectDnsQueryTest02(void) {
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -423,7 +423,7 @@ static int DetectDnsQueryTest03(void) {
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -520,7 +520,7 @@ static int DetectDnsQueryTest04(void) {
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -668,7 +668,7 @@ static int DetectDnsQueryTest05(void) {
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -860,7 +860,7 @@ static int DetectDnsQueryTest06(void) {
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -987,7 +987,7 @@ static int DetectDnsQueryTest07(void) {
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));

@ -1277,7 +1277,7 @@ int DcePayloadTest01(void)
"content:\"|79 26 46 f7 bf a1|\"; distance:0; sid:8;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2145,7 +2145,7 @@ int DcePayloadTest02(void)
"dce_stub_data; content:\"|2d 5e 63 2a 4c|\"; distance:0; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2597,7 +2597,7 @@ int DcePayloadTest03(void)
"content:\"|2d 5e 63 2a 4c|\"; distance:0; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3048,7 +3048,7 @@ int DcePayloadTest04(void)
"content:\"|2d 5e 63 2a 4c|\"; distance:0; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3498,7 +3498,7 @@ int DcePayloadTest05(void)
"dce_stub_data; content:\"|2d 5e 63 2a 4c|\"; distance:0; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3949,7 +3949,7 @@ int DcePayloadTest06(void)
"content:\"|2d 5e 63 2a 4c|\"; distance:0; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -4399,7 +4399,7 @@ int DcePayloadTest07(void)
"content:\"|2d 5e 63 35 25|\"; distance:0; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -4687,7 +4687,7 @@ int DcePayloadTest08(void)
"distance:0; within:2; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -4914,7 +4914,7 @@ int DcePayloadTest09(void)
"distance:0; within:2; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -5141,7 +5141,7 @@ int DcePayloadTest10(void)
"distance:-10; within:3; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -5503,7 +5503,7 @@ int DcePayloadTest11(void)
"distance:1; within:3; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -5879,7 +5879,7 @@ int DcePayloadTest12(void)
"distance:2; within:3; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6069,7 +6069,7 @@ int DcePayloadTest13(void)
"(dce_stub_data; content:\"|00 18|\"; sid:3;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6320,7 +6320,7 @@ int DcePayloadTest14(void)
"(dce_stub_data; content:\"|3f 00|\"; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6501,7 +6501,7 @@ int DcePayloadTest15(void)
"byte_test:2,=,46,5,relative,dce; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6617,7 +6617,7 @@ int DcePayloadTest16(void)
"byte_test:2,=,11776,5,relative; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6733,7 +6733,7 @@ int DcePayloadTest17(void)
"byte_test:2,=,46,5,relative,little; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6849,7 +6849,7 @@ int DcePayloadTest18(void)
"byte_jump:2,2,relative,dce; byte_test:2,=,14080,0,relative; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -6965,7 +6965,7 @@ int DcePayloadTest19(void)
"byte_jump:2,2,relative; byte_test:2,=,14080,0,relative; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -7081,7 +7081,7 @@ int DcePayloadTest20(void)
"byte_jump:2,2,little,relative; byte_test:2,=,14080,0,relative; sid:2;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -7189,7 +7189,7 @@ int DcePayloadTest21(void)
"content:\"string\"; within:8; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -7290,7 +7290,7 @@ int DcePayloadTest22(void)
"content:\"string\"; within:8; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -7392,7 +7392,7 @@ int DcePayloadTest23(void)
"content:\"string\"; within:8; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -9608,7 +9608,7 @@ int DcePayloadTest42(void)
"content:!\"and\"; distance:0; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -9710,7 +9710,7 @@ int DcePayloadTest43(void)
"pcre:/super/R; content:\"nova\"; within:7; sid:1;)";
Signature *s;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));

@ -316,7 +316,7 @@ static int DetectEngineHttpClientBodyTest01(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -440,7 +440,7 @@ static int DetectEngineHttpClientBodyTest02(void)
"This is dummy body1";
uint32_t http1_len = sizeof(http1_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -549,7 +549,7 @@ static int DetectEngineHttpClientBodyTest03(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -676,7 +676,7 @@ static int DetectEngineHttpClientBodyTest04(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -802,7 +802,7 @@ static int DetectEngineHttpClientBodyTest05(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -928,7 +928,7 @@ static int DetectEngineHttpClientBodyTest06(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1054,7 +1054,7 @@ static int DetectEngineHttpClientBodyTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1177,7 +1177,7 @@ static int DetectEngineHttpClientBodyTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1303,7 +1303,7 @@ static int DetectEngineHttpClientBodyTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1430,7 +1430,7 @@ static int DetectEngineHttpClientBodyTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1557,7 +1557,7 @@ static int DetectEngineHttpClientBodyTest11(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1684,7 +1684,7 @@ static int DetectEngineHttpClientBodyTest12(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1811,7 +1811,7 @@ static int DetectEngineHttpClientBodyTest13(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1938,7 +1938,7 @@ static int DetectEngineHttpClientBodyTest14(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2065,7 +2065,7 @@ static int DetectEngineHttpClientBodyTest15(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2192,7 +2192,7 @@ static int DetectEngineHttpClientBodyTest16(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2607,7 +2607,7 @@ static int DetectEngineHttpClientBodyTest21(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2734,7 +2734,7 @@ static int DetectEngineHttpClientBodyTest22(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2861,7 +2861,7 @@ static int DetectEngineHttpClientBodyTest23(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2988,7 +2988,7 @@ static int DetectEngineHttpClientBodyTest24(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3115,7 +3115,7 @@ static int DetectEngineHttpClientBodyTest25(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3242,7 +3242,7 @@ static int DetectEngineHttpClientBodyTest26(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3369,7 +3369,7 @@ static int DetectEngineHttpClientBodyTest27(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3496,7 +3496,7 @@ static int DetectEngineHttpClientBodyTest28(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3751,7 +3751,7 @@ libhtp:\n\
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3903,7 +3903,7 @@ libhtp:\n\
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -174,7 +174,7 @@ static int DetectEngineHttpCookieTest01(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -272,7 +272,7 @@ static int DetectEngineHttpCookieTest02(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -370,7 +370,7 @@ static int DetectEngineHttpCookieTest03(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -468,7 +468,7 @@ static int DetectEngineHttpCookieTest04(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -566,7 +566,7 @@ static int DetectEngineHttpCookieTest05(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -664,7 +664,7 @@ static int DetectEngineHttpCookieTest06(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -762,7 +762,7 @@ static int DetectEngineHttpCookieTest07(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -860,7 +860,7 @@ static int DetectEngineHttpCookieTest08(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -958,7 +958,7 @@ static int DetectEngineHttpCookieTest09(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1056,7 +1056,7 @@ static int DetectEngineHttpCookieTest10(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1155,7 +1155,7 @@ static int DetectEngineHttpCookieTest11(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1254,7 +1254,7 @@ static int DetectEngineHttpCookieTest12(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1353,7 +1353,7 @@ static int DetectEngineHttpCookieTest13(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1452,7 +1452,7 @@ static int DetectEngineHttpCookieTest14(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1551,7 +1551,7 @@ static int DetectEngineHttpCookieTest15(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1650,7 +1650,7 @@ static int DetectEngineHttpCookieTest16(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1749,7 +1749,7 @@ static int DetectEngineHttpCookieTest17(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -299,7 +299,7 @@ static int DetectEngineHttpHeaderTest01(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -395,7 +395,7 @@ static int DetectEngineHttpHeaderTest02(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -491,7 +491,7 @@ static int DetectEngineHttpHeaderTest03(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -587,7 +587,7 @@ static int DetectEngineHttpHeaderTest04(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -683,7 +683,7 @@ static int DetectEngineHttpHeaderTest05(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -779,7 +779,7 @@ static int DetectEngineHttpHeaderTest06(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -875,7 +875,7 @@ static int DetectEngineHttpHeaderTest07(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -971,7 +971,7 @@ static int DetectEngineHttpHeaderTest08(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1067,7 +1067,7 @@ static int DetectEngineHttpHeaderTest09(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1163,7 +1163,7 @@ static int DetectEngineHttpHeaderTest10(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1259,7 +1259,7 @@ static int DetectEngineHttpHeaderTest11(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1355,7 +1355,7 @@ static int DetectEngineHttpHeaderTest12(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1451,7 +1451,7 @@ static int DetectEngineHttpHeaderTest13(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1547,7 +1547,7 @@ static int DetectEngineHttpHeaderTest14(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1643,7 +1643,7 @@ static int DetectEngineHttpHeaderTest15(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1739,7 +1739,7 @@ static int DetectEngineHttpHeaderTest16(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1835,7 +1835,7 @@ static int DetectEngineHttpHeaderTest17(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2082,7 +2082,7 @@ static int DetectEngineHttpHeaderTest20(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2206,7 +2206,7 @@ static int DetectEngineHttpHeaderTest21(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2330,7 +2330,7 @@ static int DetectEngineHttpHeaderTest22(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2454,7 +2454,7 @@ static int DetectEngineHttpHeaderTest23(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2578,7 +2578,7 @@ static int DetectEngineHttpHeaderTest24(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2702,7 +2702,7 @@ static int DetectEngineHttpHeaderTest25(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2826,7 +2826,7 @@ static int DetectEngineHttpHeaderTest26(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2950,7 +2950,7 @@ static int DetectEngineHttpHeaderTest27(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3079,7 +3079,7 @@ static int DetectEngineHttpHeaderTest28(void)
"abcdef";
uint32_t http_buf2_len = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3208,7 +3208,7 @@ static int DetectEngineHttpHeaderTest29(void)
"abcdef";
uint32_t http_buf2_len = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3370,7 +3370,7 @@ static int DetectEngineHttpHeaderTest30(void)
"abcdef";
uint32_t http_buf2_len = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3495,7 +3495,7 @@ static int DetectEngineHttpHeaderTest31(void)
"SixZix: blah\r\n\r\n";
uint32_t http1_len = sizeof(http1_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3601,7 +3601,7 @@ static int DetectEngineHttpHeaderTest32(void)
"\r\n";
uint32_t http1_len = sizeof(http1_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3707,7 +3707,7 @@ static int DetectEngineHttpHeaderTest33(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -147,7 +147,7 @@ static int DetectEngineHttpHHTest01(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -245,7 +245,7 @@ static int DetectEngineHttpHHTest02(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -343,7 +343,7 @@ static int DetectEngineHttpHHTest03(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -441,7 +441,7 @@ static int DetectEngineHttpHHTest04(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -539,7 +539,7 @@ static int DetectEngineHttpHHTest05(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -637,7 +637,7 @@ static int DetectEngineHttpHHTest06(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -735,7 +735,7 @@ static int DetectEngineHttpHHTest07(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -833,7 +833,7 @@ static int DetectEngineHttpHHTest08(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -931,7 +931,7 @@ static int DetectEngineHttpHHTest09(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1029,7 +1029,7 @@ static int DetectEngineHttpHHTest10(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1128,7 +1128,7 @@ static int DetectEngineHttpHHTest11(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1227,7 +1227,7 @@ static int DetectEngineHttpHHTest12(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1326,7 +1326,7 @@ static int DetectEngineHttpHHTest13(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1425,7 +1425,7 @@ static int DetectEngineHttpHHTest14(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1524,7 +1524,7 @@ static int DetectEngineHttpHHTest15(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1623,7 +1623,7 @@ static int DetectEngineHttpHHTest16(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1722,7 +1722,7 @@ static int DetectEngineHttpHHTest17(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1817,7 +1817,7 @@ static int DetectEngineHttpHHTest18(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1911,7 +1911,7 @@ static int DetectEngineHttpHHTest19(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2005,7 +2005,7 @@ static int DetectEngineHttpHHTest20(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2098,7 +2098,7 @@ static int DetectEngineHttpHHTest21(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2191,7 +2191,7 @@ static int DetectEngineHttpHHTest22(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2284,7 +2284,7 @@ static int DetectEngineHttpHHTest23(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2378,7 +2378,7 @@ static int DetectEngineHttpHHTest24(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2472,7 +2472,7 @@ static int DetectEngineHttpHHTest25(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -139,7 +139,7 @@ static int DetectEngineHttpMethodTest01(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -236,7 +236,7 @@ static int DetectEngineHttpMethodTest02(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -333,7 +333,7 @@ static int DetectEngineHttpMethodTest03(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -430,7 +430,7 @@ static int DetectEngineHttpMethodTest04(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -527,7 +527,7 @@ static int DetectEngineHttpMethodTest05(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -624,7 +624,7 @@ static int DetectEngineHttpMethodTest06(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -721,7 +721,7 @@ static int DetectEngineHttpMethodTest07(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -818,7 +818,7 @@ static int DetectEngineHttpMethodTest08(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -915,7 +915,7 @@ static int DetectEngineHttpMethodTest09(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1012,7 +1012,7 @@ static int DetectEngineHttpMethodTest10(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1110,7 +1110,7 @@ static int DetectEngineHttpMethodTest11(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1208,7 +1208,7 @@ static int DetectEngineHttpMethodTest12(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1306,7 +1306,7 @@ static int DetectEngineHttpMethodTest13(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1404,7 +1404,7 @@ static int DetectEngineHttpMethodTest14(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1502,7 +1502,7 @@ static int DetectEngineHttpMethodTest15(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1600,7 +1600,7 @@ static int DetectEngineHttpMethodTest16(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1698,7 +1698,7 @@ static int DetectEngineHttpMethodTest17(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -185,7 +185,7 @@ static int DetectEngineHttpRawHeaderTest01(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -281,7 +281,7 @@ static int DetectEngineHttpRawHeaderTest02(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -377,7 +377,7 @@ static int DetectEngineHttpRawHeaderTest03(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -473,7 +473,7 @@ static int DetectEngineHttpRawHeaderTest04(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -569,7 +569,7 @@ static int DetectEngineHttpRawHeaderTest05(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -665,7 +665,7 @@ static int DetectEngineHttpRawHeaderTest06(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -761,7 +761,7 @@ static int DetectEngineHttpRawHeaderTest07(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -857,7 +857,7 @@ static int DetectEngineHttpRawHeaderTest08(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -953,7 +953,7 @@ static int DetectEngineHttpRawHeaderTest09(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1049,7 +1049,7 @@ static int DetectEngineHttpRawHeaderTest10(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1145,7 +1145,7 @@ static int DetectEngineHttpRawHeaderTest11(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1241,7 +1241,7 @@ static int DetectEngineHttpRawHeaderTest12(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1337,7 +1337,7 @@ static int DetectEngineHttpRawHeaderTest13(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1433,7 +1433,7 @@ static int DetectEngineHttpRawHeaderTest14(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1529,7 +1529,7 @@ static int DetectEngineHttpRawHeaderTest15(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1625,7 +1625,7 @@ static int DetectEngineHttpRawHeaderTest16(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1721,7 +1721,7 @@ static int DetectEngineHttpRawHeaderTest17(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1968,7 +1968,7 @@ static int DetectEngineHttpRawHeaderTest20(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2092,7 +2092,7 @@ static int DetectEngineHttpRawHeaderTest21(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2216,7 +2216,7 @@ static int DetectEngineHttpRawHeaderTest22(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2340,7 +2340,7 @@ static int DetectEngineHttpRawHeaderTest23(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2464,7 +2464,7 @@ static int DetectEngineHttpRawHeaderTest24(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2588,7 +2588,7 @@ static int DetectEngineHttpRawHeaderTest25(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2712,7 +2712,7 @@ static int DetectEngineHttpRawHeaderTest26(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2834,7 +2834,7 @@ static int DetectEngineHttpRawHeaderTest27(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2963,7 +2963,7 @@ static int DetectEngineHttpRawHeaderTest28(void)
"abcdef";
uint32_t http_buf2_len = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3092,7 +3092,7 @@ static int DetectEngineHttpRawHeaderTest29(void)
"abcdef";
uint32_t http_buf2_len = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3253,7 +3253,7 @@ static int DetectEngineHttpRawHeaderTest31(void)
"\r\n";
uint32_t http1_len = sizeof(http1_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3360,7 +3360,7 @@ static int DetectEngineHttpRawHeaderTest32(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -174,7 +174,7 @@ static int DetectEngineHttpHRHTest01(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -272,7 +272,7 @@ static int DetectEngineHttpHRHTest02(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -370,7 +370,7 @@ static int DetectEngineHttpHRHTest03(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -468,7 +468,7 @@ static int DetectEngineHttpHRHTest04(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -566,7 +566,7 @@ static int DetectEngineHttpHRHTest05(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -664,7 +664,7 @@ static int DetectEngineHttpHRHTest06(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -762,7 +762,7 @@ static int DetectEngineHttpHRHTest07(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -860,7 +860,7 @@ static int DetectEngineHttpHRHTest08(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -958,7 +958,7 @@ static int DetectEngineHttpHRHTest09(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1056,7 +1056,7 @@ static int DetectEngineHttpHRHTest10(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1155,7 +1155,7 @@ static int DetectEngineHttpHRHTest11(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1254,7 +1254,7 @@ static int DetectEngineHttpHRHTest12(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1353,7 +1353,7 @@ static int DetectEngineHttpHRHTest13(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1452,7 +1452,7 @@ static int DetectEngineHttpHRHTest14(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1551,7 +1551,7 @@ static int DetectEngineHttpHRHTest15(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1650,7 +1650,7 @@ static int DetectEngineHttpHRHTest16(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1749,7 +1749,7 @@ static int DetectEngineHttpHRHTest17(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1844,7 +1844,7 @@ static int DetectEngineHttpHRHTest18(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1938,7 +1938,7 @@ static int DetectEngineHttpHRHTest19(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2032,7 +2032,7 @@ static int DetectEngineHttpHRHTest20(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2125,7 +2125,7 @@ static int DetectEngineHttpHRHTest21(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2218,7 +2218,7 @@ static int DetectEngineHttpHRHTest22(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2311,7 +2311,7 @@ static int DetectEngineHttpHRHTest23(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2405,7 +2405,7 @@ static int DetectEngineHttpHRHTest24(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2499,7 +2499,7 @@ static int DetectEngineHttpHRHTest25(void)
"User-Agent: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -153,7 +153,7 @@ static int DetectEngineHttpRawUriTest01(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -277,7 +277,7 @@ static int DetectEngineHttpRawUriTest02(void)
"This is dummy body1";
uint32_t http1_len = sizeof(http1_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -387,7 +387,7 @@ static int DetectEngineHttpRawUriTest03(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -515,7 +515,7 @@ static int DetectEngineHttpRawUriTest04(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -642,7 +642,7 @@ static int DetectEngineHttpRawUriTest05(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -769,7 +769,7 @@ static int DetectEngineHttpRawUriTest06(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -896,7 +896,7 @@ static int DetectEngineHttpRawUriTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1023,7 +1023,7 @@ static int DetectEngineHttpRawUriTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1150,7 +1150,7 @@ static int DetectEngineHttpRawUriTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1278,7 +1278,7 @@ static int DetectEngineHttpRawUriTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1406,7 +1406,7 @@ static int DetectEngineHttpRawUriTest11(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1534,7 +1534,7 @@ static int DetectEngineHttpRawUriTest12(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1662,7 +1662,7 @@ static int DetectEngineHttpRawUriTest13(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1790,7 +1790,7 @@ static int DetectEngineHttpRawUriTest14(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1918,7 +1918,7 @@ static int DetectEngineHttpRawUriTest15(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2046,7 +2046,7 @@ static int DetectEngineHttpRawUriTest16(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2462,7 +2462,7 @@ static int DetectEngineHttpRawUriTest21(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2590,7 +2590,7 @@ static int DetectEngineHttpRawUriTest22(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2718,7 +2718,7 @@ static int DetectEngineHttpRawUriTest23(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2846,7 +2846,7 @@ static int DetectEngineHttpRawUriTest24(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2974,7 +2974,7 @@ static int DetectEngineHttpRawUriTest25(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3102,7 +3102,7 @@ static int DetectEngineHttpRawUriTest26(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3230,7 +3230,7 @@ static int DetectEngineHttpRawUriTest27(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3358,7 +3358,7 @@ static int DetectEngineHttpRawUriTest28(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3478,7 +3478,7 @@ static int DetectEngineHttpRawUriTest29(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3573,7 +3573,7 @@ static int DetectEngineHttpRawUriTest30(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));

@ -324,7 +324,7 @@ static int DetectEngineHttpServerBodyTest01(void)
"message";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -451,7 +451,7 @@ static int DetectEngineHttpServerBodyTest02(void)
"xxxxABC";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -568,7 +568,7 @@ static int DetectEngineHttpServerBodyTest03(void)
uint8_t http_buf3[] =
"8901234ABC";
uint32_t http_len3 = sizeof(http_buf3) - 1;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -706,7 +706,7 @@ static int DetectEngineHttpServerBodyTest04(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -834,7 +834,7 @@ static int DetectEngineHttpServerBodyTest05(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -962,7 +962,7 @@ static int DetectEngineHttpServerBodyTest06(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1090,7 +1090,7 @@ static int DetectEngineHttpServerBodyTest07(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1218,7 +1218,7 @@ static int DetectEngineHttpServerBodyTest08(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1346,7 +1346,7 @@ static int DetectEngineHttpServerBodyTest09(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1475,7 +1475,7 @@ static int DetectEngineHttpServerBodyTest10(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1604,7 +1604,7 @@ static int DetectEngineHttpServerBodyTest11(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1733,7 +1733,7 @@ static int DetectEngineHttpServerBodyTest12(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1862,7 +1862,7 @@ static int DetectEngineHttpServerBodyTest13(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1991,7 +1991,7 @@ static int DetectEngineHttpServerBodyTest14(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2120,7 +2120,7 @@ static int DetectEngineHttpServerBodyTest15(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2275,7 +2275,7 @@ libhtp:\n\
uint8_t http_buf3[] =
"8901234ABC";
uint32_t http_len3 = sizeof(http_buf3) - 1;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2451,7 +2451,7 @@ libhtp:\n\
uint8_t http_buf3[] =
"8901234ABC";
uint32_t http_len3 = sizeof(http_buf3) - 1;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2611,7 +2611,7 @@ static int DetectEngineHttpServerBodyTest18(void)
};
uint32_t http_len2 = sizeof(http_buf2);
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2741,7 +2741,7 @@ static int DetectEngineHttpServerBodyTest19(void)
// 0xb2, 0x7d, 0xac, 0x9b, 0x19, 0x00, 0x00, 0x00,
uint32_t http_len2 = sizeof(http_buf2);
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2871,7 +2871,7 @@ static int DetectEngineHttpServerBodyTest20(void)
// 0xb2, 0x7d, 0xac, 0x9b, 0x19, 0x00, 0x00, 0x00,
uint32_t http_len2 = sizeof(http_buf2);
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3003,7 +3003,7 @@ static int DetectEngineHttpServerBodyTest21(void)
};
uint32_t http_len2 = sizeof(http_buf2);
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3137,7 +3137,7 @@ static int DetectEngineHttpServerBodyTest22(void)
};
uint32_t http_len2 = sizeof(http_buf2);
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3259,7 +3259,7 @@ static int DetectEngineHttpServerBodyFileDataTest01(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3388,7 +3388,7 @@ static int DetectEngineHttpServerBodyFileDataTest02(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3518,7 +3518,7 @@ static int DetectEngineHttpServerBodyFileDataTest03(void)
"XYZ_klm_1234abcd_XYZ_klm_5678abcd";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -150,7 +150,7 @@ static int DetectEngineHttpStatCodeTest01(void)
"message";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -277,7 +277,7 @@ static int DetectEngineHttpStatCodeTest02(void)
"xxxxABC";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -394,7 +394,7 @@ static int DetectEngineHttpStatCodeTest03(void)
"\r\n"
"12345678901234ABC";
uint32_t http_len3 = sizeof(http_buf3) - 1;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -532,7 +532,7 @@ static int DetectEngineHttpStatCodeTest04(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -660,7 +660,7 @@ static int DetectEngineHttpStatCodeTest05(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -788,7 +788,7 @@ static int DetectEngineHttpStatCodeTest06(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -916,7 +916,7 @@ static int DetectEngineHttpStatCodeTest07(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1044,7 +1044,7 @@ static int DetectEngineHttpStatCodeTest08(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1172,7 +1172,7 @@ static int DetectEngineHttpStatCodeTest09(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1301,7 +1301,7 @@ static int DetectEngineHttpStatCodeTest10(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1430,7 +1430,7 @@ static int DetectEngineHttpStatCodeTest11(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1559,7 +1559,7 @@ static int DetectEngineHttpStatCodeTest12(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1688,7 +1688,7 @@ static int DetectEngineHttpStatCodeTest13(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1817,7 +1817,7 @@ static int DetectEngineHttpStatCodeTest14(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1946,7 +1946,7 @@ static int DetectEngineHttpStatCodeTest15(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -150,7 +150,7 @@ static int DetectEngineHttpStatMsgTest01(void)
"message";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -277,7 +277,7 @@ static int DetectEngineHttpStatMsgTest02(void)
"xxxxABC";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -394,7 +394,7 @@ static int DetectEngineHttpStatMsgTest03(void)
"\r\n"
"12345678901234ABC";
uint32_t http_len3 = sizeof(http_buf3) - 1;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -532,7 +532,7 @@ static int DetectEngineHttpStatMsgTest04(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -660,7 +660,7 @@ static int DetectEngineHttpStatMsgTest05(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -788,7 +788,7 @@ static int DetectEngineHttpStatMsgTest06(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -916,7 +916,7 @@ static int DetectEngineHttpStatMsgTest07(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1044,7 +1044,7 @@ static int DetectEngineHttpStatMsgTest08(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1172,7 +1172,7 @@ static int DetectEngineHttpStatMsgTest09(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1301,7 +1301,7 @@ static int DetectEngineHttpStatMsgTest10(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1430,7 +1430,7 @@ static int DetectEngineHttpStatMsgTest11(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1559,7 +1559,7 @@ static int DetectEngineHttpStatMsgTest12(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1688,7 +1688,7 @@ static int DetectEngineHttpStatMsgTest13(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1817,7 +1817,7 @@ static int DetectEngineHttpStatMsgTest14(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1946,7 +1946,7 @@ static int DetectEngineHttpStatMsgTest15(void)
"abcdef";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -151,7 +151,7 @@ static int DetectEngineHttpUATest01(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -249,7 +249,7 @@ static int DetectEngineHttpUATest02(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -347,7 +347,7 @@ static int DetectEngineHttpUATest03(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -445,7 +445,7 @@ static int DetectEngineHttpUATest04(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -543,7 +543,7 @@ static int DetectEngineHttpUATest05(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -641,7 +641,7 @@ static int DetectEngineHttpUATest06(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -739,7 +739,7 @@ static int DetectEngineHttpUATest07(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -837,7 +837,7 @@ static int DetectEngineHttpUATest08(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -935,7 +935,7 @@ static int DetectEngineHttpUATest09(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1033,7 +1033,7 @@ static int DetectEngineHttpUATest10(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1132,7 +1132,7 @@ static int DetectEngineHttpUATest11(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1231,7 +1231,7 @@ static int DetectEngineHttpUATest12(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1330,7 +1330,7 @@ static int DetectEngineHttpUATest13(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1429,7 +1429,7 @@ static int DetectEngineHttpUATest14(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1528,7 +1528,7 @@ static int DetectEngineHttpUATest15(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1627,7 +1627,7 @@ static int DetectEngineHttpUATest16(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1726,7 +1726,7 @@ static int DetectEngineHttpUATest17(void)
"Host: www.onetwothreefourfivesixseven.org\r\n\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -913,7 +913,7 @@ static int DeStateSigTest01(void)
uint32_t httplen3 = sizeof(httpbuf3) - 1; /* minus the \0 */
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1059,7 +1059,7 @@ static int DeStateSigTest02(void) {
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
uint32_t httplen7 = sizeof(httpbuf7) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1253,7 +1253,7 @@ static int DeStateSigTest03(void) {
Flow *f = NULL;
Packet *p = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&ssn, 0, sizeof(ssn));
@ -1379,7 +1379,7 @@ static int DeStateSigTest04(void) {
Flow *f = NULL;
Packet *p = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&ssn, 0, sizeof(ssn));
@ -1505,7 +1505,7 @@ static int DeStateSigTest05(void) {
Flow *f = NULL;
Packet *p = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&ssn, 0, sizeof(ssn));
@ -1631,7 +1631,7 @@ static int DeStateSigTest06(void) {
Flow *f = NULL;
Packet *p = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&ssn, 0, sizeof(ssn));
@ -1759,7 +1759,7 @@ static int DeStateSigTest07(void) {
Flow *f = NULL;
Packet *p = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&ssn, 0, sizeof(ssn));

@ -125,7 +125,7 @@ static int UriTestSig01(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -248,7 +248,7 @@ static int UriTestSig02(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -371,7 +371,7 @@ static int UriTestSig03(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -494,7 +494,7 @@ static int UriTestSig04(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -617,7 +617,7 @@ static int UriTestSig05(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -740,7 +740,7 @@ static int UriTestSig06(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -863,7 +863,7 @@ static int UriTestSig07(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -986,7 +986,7 @@ static int UriTestSig08(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1109,7 +1109,7 @@ static int UriTestSig09(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1232,7 +1232,7 @@ static int UriTestSig10(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1355,7 +1355,7 @@ static int UriTestSig11(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1479,7 +1479,7 @@ static int UriTestSig12(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1603,7 +1603,7 @@ static int UriTestSig13(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1727,7 +1727,7 @@ static int UriTestSig14(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1851,7 +1851,7 @@ static int UriTestSig15(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -1975,7 +1975,7 @@ static int UriTestSig16(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2095,7 +2095,7 @@ static int UriTestSig17(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2191,7 +2191,7 @@ static int UriTestSig18(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2287,7 +2287,7 @@ static int UriTestSig19(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2384,7 +2384,7 @@ static int UriTestSig20(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2480,7 +2480,7 @@ static int UriTestSig21(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2576,7 +2576,7 @@ static int UriTestSig22(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2670,7 +2670,7 @@ static int UriTestSig23(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2764,7 +2764,7 @@ static int UriTestSig24(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2858,7 +2858,7 @@ static int UriTestSig25(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -2952,7 +2952,7 @@ static int UriTestSig26(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3046,7 +3046,7 @@ static int UriTestSig27(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3172,7 +3172,7 @@ static int UriTestSig28(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3265,7 +3265,7 @@ static int UriTestSig29(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3358,7 +3358,7 @@ static int UriTestSig30(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3451,7 +3451,7 @@ static int UriTestSig31(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3544,7 +3544,7 @@ static int UriTestSig32(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3637,7 +3637,7 @@ static int UriTestSig33(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3728,7 +3728,7 @@ static int UriTestSig34(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3819,7 +3819,7 @@ static int UriTestSig35(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -3910,7 +3910,7 @@ static int UriTestSig36(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -4001,7 +4001,7 @@ static int UriTestSig37(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -4092,7 +4092,7 @@ static int UriTestSig38(void)
Packet *p = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));

@ -293,7 +293,7 @@ static int DetectFtpbounceTestALMatch02(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -427,7 +427,7 @@ static int DetectFtpbounceTestALMatch03(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(p, 0, SIZE_OF_PACKET);

@ -307,7 +307,7 @@ static int DetectHttpClientBodyTest06(void)
"This is dummy message body";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -413,7 +413,7 @@ static int DetectHttpClientBodyTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -540,7 +540,7 @@ static int DetectHttpClientBodyTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -670,7 +670,7 @@ static int DetectHttpClientBodyTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -800,7 +800,7 @@ static int DetectHttpClientBodyTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -926,7 +926,7 @@ static int DetectHttpClientBodyTest11(void)
"This is dummy message body";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1028,7 +1028,7 @@ static int DetectHttpClientBodyTest12(void)
"This is dummy message body";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1130,7 +1130,7 @@ static int DetectHttpClientBodyTest13(void)
"longbufferabcdefghijklmnopqrstuvwxyz0123456789bufferend";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1232,7 +1232,7 @@ static int DetectHttpClientBodyTest14(void) {
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
uint32_t httplen7 = sizeof(httpbuf7) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1450,7 +1450,7 @@ static int DetectHttpClientBodyTest15(void) {
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
uint32_t httplen7 = sizeof(httpbuf7) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -324,7 +324,7 @@ static int DetectHttpCookieSigTest01(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -428,7 +428,7 @@ static int DetectHttpCookieSigTest02(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -521,7 +521,7 @@ static int DetectHttpCookieSigTest03(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -613,7 +613,7 @@ static int DetectHttpCookieSigTest04(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -706,7 +706,7 @@ static int DetectHttpCookieSigTest05(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -799,7 +799,7 @@ static int DetectHttpCookieSigTest06(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -865,7 +865,7 @@ static int DetectHttpCookieSigTest06(void) {
result = 1;
end:
if (alp_tctx != NULL)
AppLayerDestroyCtxThread(alp_tctx);
AppLayerParserThreadCtxFree(alp_tctx);
if (det_ctx != NULL) {
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
}
@ -892,7 +892,7 @@ static int DetectHttpCookieSigTest07(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -957,7 +957,7 @@ static int DetectHttpCookieSigTest07(void) {
result = 1;
end:
if (alp_tctx != NULL)
AppLayerDestroyCtxThread(alp_tctx);
AppLayerParserThreadCtxFree(alp_tctx);
if (det_ctx != NULL) {
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
}
@ -997,7 +997,7 @@ static int DetectHttpCookieSigTest08(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1086,7 +1086,7 @@ static int DetectHttpCookieSigTest08(void)
end:
if (alp_tctx != NULL)
AppLayerDestroyCtxThread(alp_tctx);
AppLayerParserThreadCtxFree(alp_tctx);
if (det_ctx != NULL) {
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
}
@ -1128,7 +1128,7 @@ static int DetectHttpCookieSigTest09(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1223,7 +1223,7 @@ static int DetectHttpCookieSigTest09(void)
end:
if (alp_tctx != NULL)
AppLayerDestroyCtxThread(alp_tctx);
AppLayerParserThreadCtxFree(alp_tctx);
if (det_ctx != NULL) {
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
}

@ -315,7 +315,7 @@ static int DetectHttpHeaderTest06(void)
"This is dummy message body\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -419,7 +419,7 @@ static int DetectHttpHeaderTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -546,7 +546,7 @@ static int DetectHttpHeaderTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -674,7 +674,7 @@ static int DetectHttpHeaderTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -803,7 +803,7 @@ static int DetectHttpHeaderTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -928,7 +928,7 @@ static int DetectHttpHeaderTest11(void)
"This is dummy message body\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1029,7 +1029,7 @@ static int DetectHttpHeaderTest12(void)
"This is dummy message body\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1130,7 +1130,7 @@ static int DetectHttpHeaderTest13(void)
"longbufferabcdefghijklmnopqrstuvwxyz0123456789bufferend\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1539,7 +1539,7 @@ static int DetectHttpHeaderTest28(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1626,7 +1626,7 @@ static int DetectHttpHeaderTest29(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1713,7 +1713,7 @@ static int DetectHttpHeaderTest30(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -292,7 +292,7 @@ static int DetectHttpHHTest06(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -394,7 +394,7 @@ static int DetectHttpHHTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -517,7 +517,7 @@ static int DetectHttpHHTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -647,7 +647,7 @@ static int DetectHttpHHTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -777,7 +777,7 @@ static int DetectHttpHHTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -902,7 +902,7 @@ static int DetectHttpHHTest11(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1001,7 +1001,7 @@ static int DetectHttpHHTest12(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1101,7 +1101,7 @@ static int DetectHttpHHTest13(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1204,7 +1204,7 @@ static int DetectHttpHHTest14(void)
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -292,7 +292,7 @@ static int DetectHttpHRHTest06(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -394,7 +394,7 @@ static int DetectHttpHRHTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -517,7 +517,7 @@ static int DetectHttpHRHTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -647,7 +647,7 @@ static int DetectHttpHRHTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -777,7 +777,7 @@ static int DetectHttpHRHTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -901,7 +901,7 @@ static int DetectHttpHRHTest11(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1000,7 +1000,7 @@ static int DetectHttpHRHTest12(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1100,7 +1100,7 @@ static int DetectHttpHRHTest13(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1203,7 +1203,7 @@ static int DetectHttpHRHTest14(void)
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2084,7 +2084,7 @@ static int DetectHttpHRHTest37(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -410,7 +410,7 @@ static int DetectHttpMethodSigTest01(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -513,7 +513,7 @@ static int DetectHttpMethodSigTest02(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -615,7 +615,7 @@ static int DetectHttpMethodSigTest03(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -707,7 +707,7 @@ static int DetectHttpMethodSigTest04(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -314,7 +314,7 @@ static int DetectHttpRawHeaderTest06(void)
"This is dummy message body\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -418,7 +418,7 @@ static int DetectHttpRawHeaderTest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -545,7 +545,7 @@ static int DetectHttpRawHeaderTest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -673,7 +673,7 @@ static int DetectHttpRawHeaderTest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -801,7 +801,7 @@ static int DetectHttpRawHeaderTest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -926,7 +926,7 @@ static int DetectHttpRawHeaderTest11(void)
"This is dummy message body\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1027,7 +1027,7 @@ static int DetectHttpRawHeaderTest12(void)
"This is dummy message body\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1128,7 +1128,7 @@ static int DetectHttpRawHeaderTest13(void)
"longbufferabcdefghijklmnopqrstuvwxyz0123456789bufferend\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -328,7 +328,7 @@ static int DetectHttpServerBodyTest06(void)
"message";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -445,7 +445,7 @@ static int DetectHttpServerBodyTest07(void)
"message";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -583,7 +583,7 @@ static int DetectHttpServerBodyTest08(void)
"sage4u!!";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -730,7 +730,7 @@ static int DetectHttpServerBodyTest09(void)
"e4u!!";
uint32_t http_len4 = sizeof(http_buf4) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -885,7 +885,7 @@ static int DetectHttpServerBodyTest10(void)
"e4u!!";
uint32_t http_len4 = sizeof(http_buf4) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1036,7 +1036,7 @@ static int DetectHttpServerBodyTest11(void)
"bigmessage4u!!";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1179,7 +1179,7 @@ static int DetectHttpServerBodyTest12(void)
"bigmessage4u!!";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1315,7 +1315,7 @@ static int DetectHttpServerBodyTest13(void)
"longbufferabcdefghijklmnopqrstuvwxyz0123456789bufferend";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1434,7 +1434,7 @@ static int DetectHttpServerBodyTest14(void) {
"\r\n"
"two";
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1601,7 +1601,7 @@ static int DetectHttpServerBodyTest15(void) {
"\r\n"
"two";
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2426,7 +2426,7 @@ static int DetectHttpServerBodyFileDataTest01(void)
"message";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2543,7 +2543,7 @@ static int DetectHttpServerBodyFileDataTest02(void)
"message";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2683,7 +2683,7 @@ static int DetectHttpServerBodyFileDataTest03(void)
"sage4u!!";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2831,7 +2831,7 @@ static int DetectHttpServerBodyFileDataTest04(void)
"e4u!!";
uint32_t http_len4 = sizeof(http_buf4) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2986,7 +2986,7 @@ static int DetectHttpServerBodyFileDataTest05(void)
"e4u!!";
uint32_t http_len4 = sizeof(http_buf4) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3137,7 +3137,7 @@ static int DetectHttpServerBodyFileDataTest06(void)
"bigmessage4u!!";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3280,7 +3280,7 @@ static int DetectHttpServerBodyFileDataTest07(void)
"bigmessage4u!!";
uint32_t http_len3 = sizeof(http_buf3) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3416,7 +3416,7 @@ static int DetectHttpServerBodyFileDataTest08(void)
"longbufferabcdefghijklmnopqrstuvwxyz0123456789bufferend";
uint32_t http_len2 = sizeof(http_buf2) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3535,7 +3535,7 @@ static int DetectHttpServerBodyFileDataTest09(void) {
"\r\n"
"two";
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3690,7 +3690,7 @@ static int DetectHttpServerBodyFileDataTest10(void) {
"\r\n"
"two";
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -227,7 +227,7 @@ static int DetectHttpStatCodeSigTest01(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -328,7 +328,7 @@ static int DetectHttpStatCodeSigTest02(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -443,7 +443,7 @@ static int DetectHttpStatCodeSigTest03(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -558,7 +558,7 @@ static int DetectHttpStatCodeSigTest04(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -219,7 +219,7 @@ static int DetectHttpStatMsgSigTest01(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -333,7 +333,7 @@ static int DetectHttpStatMsgSigTest02(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -437,7 +437,7 @@ static int DetectHttpStatMsgSigTest03(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -293,7 +293,7 @@ static int DetectHttpUATest06(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -395,7 +395,7 @@ static int DetectHttpUATest07(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -518,7 +518,7 @@ static int DetectHttpUATest08(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -648,7 +648,7 @@ static int DetectHttpUATest09(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -778,7 +778,7 @@ static int DetectHttpUATest10(void)
uint32_t http1_len = sizeof(http1_buf) - 1;
uint32_t http2_len = sizeof(http2_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -902,7 +902,7 @@ static int DetectHttpUATest11(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1001,7 +1001,7 @@ static int DetectHttpUATest12(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1101,7 +1101,7 @@ static int DetectHttpUATest13(void)
"\r\n";
uint32_t http_len = sizeof(http_buf) - 1;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1204,7 +1204,7 @@ static int DetectHttpUATest14(void)
uint32_t httplen4 = sizeof(httpbuf4) - 1; /* minus the \0 */
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -979,7 +979,7 @@ static int LuajitMatchTest01(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
ut_script = script;
@ -1409,7 +1409,7 @@ static int LuajitMatchTest04(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
ut_script = script;
@ -1556,7 +1556,7 @@ static int LuajitMatchTest05(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
ut_script = script;
@ -1708,7 +1708,7 @@ static int LuajitMatchTest06(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
ut_script = script;

@ -1656,7 +1656,7 @@ static int DetectPcreTestSig01Real(int mpm_type)
DetectEngineThreadCtx *det_ctx = NULL;
int result = 0;
Flow f;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&th_v, 0, sizeof(th_v));
@ -1916,7 +1916,7 @@ static int DetectPcreModifPTest04(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2046,7 +2046,7 @@ static int DetectPcreModifPTest05(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -2244,7 +2244,7 @@ static int DetectPcreTestSig09(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2340,7 +2340,7 @@ static int DetectPcreTestSig10(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2436,7 +2436,7 @@ static int DetectPcreTestSig11(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2532,7 +2532,7 @@ static int DetectPcreTestSig12(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2628,7 +2628,7 @@ static int DetectPcreTestSig13(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2724,7 +2724,7 @@ static int DetectPcreTestSig14(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2820,7 +2820,7 @@ static int DetectPcreTestSig15(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -2917,7 +2917,7 @@ static int DetectPcreTestSig16(void)
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));
@ -3020,7 +3020,7 @@ static int DetectPcreTxBodyChunksTest01(void)
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
uint32_t httplen7 = sizeof(httpbuf7) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -3171,7 +3171,7 @@ static int DetectPcreTxBodyChunksTest02(void)
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
uint32_t httplen7 = sizeof(httpbuf7) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3419,7 +3419,7 @@ static int DetectPcreTxBodyChunksTest03(void)
uint32_t httplen5 = sizeof(httpbuf5) - 1; /* minus the \0 */
uint32_t httplen6 = sizeof(httpbuf6) - 1; /* minus the \0 */
uint32_t httplen7 = sizeof(httpbuf7) - 1; /* minus the \0 */
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3641,7 +3641,7 @@ static int DetectPcreFlowvarCapture01(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3767,7 +3767,7 @@ static int DetectPcreFlowvarCapture02(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -3913,7 +3913,7 @@ static int DetectPcreFlowvarCapture03(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -700,7 +700,7 @@ static int DetectSslStateTest07(void)
DetectEngineCtx *de_ctx = NULL;
SSLState *ssl_state = NULL;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&p, 0, sizeof(p));

@ -420,7 +420,7 @@ static int DetectSslVersionTestDetect01(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -545,7 +545,7 @@ static int DetectSslVersionTestDetect02(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -666,7 +666,7 @@ static int DetectSslVersionTestDetect03(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -328,7 +328,7 @@ static int DetectTlsVersionTestDetect01(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -455,7 +455,7 @@ static int DetectTlsVersionTestDetect02(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -579,7 +579,7 @@ static int DetectTlsVersionTestDetect03(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -282,7 +282,7 @@ static int HTTPUriTest01(void) {
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -348,7 +348,7 @@ static int HTTPUriTest02(void) {
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -417,7 +417,7 @@ static int HTTPUriTest03(void) {
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -487,7 +487,7 @@ static int HTTPUriTest04(void) {
uint32_t httplen1 = sizeof(httpbuf1) - 1; /* minus the \0 */
TcpSession ssn;
int r = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(f));
memset(&ssn, 0, sizeof(ssn));
@ -604,7 +604,7 @@ static int DetectUriSigTest02(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
HtpState *http_state = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -719,7 +719,7 @@ static int DetectUriSigTest03(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1058,7 +1058,7 @@ static int DetectUriSigTest05(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1185,7 +1185,7 @@ static int DetectUriSigTest06(void) {
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
TCPHdr tcp_hdr;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -1322,7 +1322,7 @@ static int DetectUriSigTest07(void) {
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -587,7 +587,7 @@ static int DetectUrilenSigTest01(void)
Signature *s = NULL;
ThreadVars th_v;
DetectEngineThreadCtx *det_ctx;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));

@ -5124,7 +5124,7 @@ static int SigTest06Real (int mpm_type) {
Flow f;
TcpSession ssn;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -5224,7 +5224,7 @@ static int SigTest07Real (int mpm_type) {
Flow f;
TcpSession ssn;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -5325,7 +5325,7 @@ static int SigTest08Real (int mpm_type) {
Flow f;
TcpSession ssn;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&f, 0, sizeof(Flow));
memset(&th_v, 0, sizeof(th_v));
@ -5425,7 +5425,7 @@ static int SigTest09Real (int mpm_type) {
DetectEngineThreadCtx *det_ctx = NULL;
Flow f;
TcpSession ssn;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
int result = 0;
memset(&th_v, 0, sizeof(th_v));
@ -5519,7 +5519,7 @@ static int SigTest10Real (int mpm_type) {
Flow f;
TcpSession ssn;
int result = 0;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&th_v, 0, sizeof(th_v));
memset(&f, 0, sizeof(f));
@ -10754,7 +10754,7 @@ static int SigTestDropFlow01(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -10857,7 +10857,7 @@ static int SigTestDropFlow02(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -10972,7 +10972,7 @@ static int SigTestDropFlow03(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));
@ -11145,7 +11145,7 @@ static int SigTestDropFlow04(void)
Signature *s = NULL;
ThreadVars tv;
DetectEngineThreadCtx *det_ctx = NULL;
void *alp_tctx = AppLayerParserThreadCtxAlloc();
AppLayerParserThreadCtx *alp_tctx = AppLayerParserThreadCtxAlloc();
memset(&tv, 0, sizeof(ThreadVars));
memset(&f, 0, sizeof(Flow));

Loading…
Cancel
Save