FAIL_IF(htp_tx_request_method_number(tx) != HTP_METHOD_POST);
FAIL_IF(htp_tx_request_protocol_number(tx) != HTP_PROTOCOL_V1_0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_request_method_number(tx) != HTP_METHOD_POST);
FAIL_IF(htp_tx_request_protocol_number(tx) != HTP_PROTOCOL_V1_0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_request_method_number(tx) != HTP_METHOD_POST);
FAIL_IF(htp_tx_request_protocol_number(tx) != HTP_PROTOCOL_V1_0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_request_method_number(tx) != HTP_METHOD_POST);
FAIL_IF(htp_tx_request_protocol_number(tx) != HTP_PROTOCOL_V1_0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(strcmp(method, "POST") != 0);
SCFree(method);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_request_method_number(tx) != HTP_METHOD_UNKNOWN);
FAIL_IF(htp_tx_request_protocol_number(tx) != HTP_PROTOCOL_V1_0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_request_method_number(tx) != HTP_METHOD_UNKNOWN);
FAIL_IF(htp_tx_request_protocol_number(tx) != HTP_PROTOCOL_V0_9);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF_NOT(htp_tx_response_status_number(tx) == 200);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
const htp_header_t *h = htp_tx_request_header_index(tx, 0);
FAIL_IF_NULL(h);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF_NULL(request_uri_normalized);
PrintRawDataFp(stdout, bstr_ptr(request_uri_normalized), bstr_len(request_uri_normalized));
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
- UTHFreeFlow(f);
PASS;
}
FAIL_IF_NULL(request_uri_normalized);
PrintRawDataFp(stdout, bstr_ptr(request_uri_normalized), bstr_len(request_uri_normalized));
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
- UTHFreeFlow(f);
PASS;
}
FAIL_IF_NULL(value);
FAIL_IF(strcmp(value, "www.google.com") != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
SCFree(name);
SCFree(value);
PASS;
FAIL_IF(bstr_ptr(request_uri_normalized)[2] != '0');
FAIL_IF(bstr_ptr(request_uri_normalized)[3] != '0');
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(bstr_ptr(request_uri_normalized)[5] != '0');
FAIL_IF(bstr_ptr(request_uri_normalized)[6] != '0');
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF_NULL(value);
FAIL_IF(strcmp(value, "www.google.com\rName: Value") != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
SCFree(name);
SCFree(value);
tx = HTPStateGetTx(htp_state, 1);
FAIL_IF_NULL(tx);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(reflen != bstr_len(request_uri_normalized));
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref3, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref3, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref3, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref2, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref1, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref1, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref1, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref1, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref1, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(memcmp(bstr_ptr(request_uri_normalized), ref1, bstr_len(request_uri_normalized)) != 0);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
-
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
AppLayerDecoderEvents *decoder_events = AppLayerParserGetDecoderEvents(f->alparser);
FAIL_IF_NOT_NULL(decoder_events);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
HTPFreeConfig();
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(decoder_events->events[0] != HTP_LOG_CODE_REQUEST_FIELD_TOO_LONG);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
SCFree(httpbuf);
HTPFreeConfig();
SCConfDeInit();
AppLayerParserGetEventsByTx(IPPROTO_TCP, ALPROTO_HTTP1, txtmp);
FAIL_IF_NOT_NULL(decoder_events);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
SCFree(httpbuf);
HTPFreeConfig();
SCConfDeInit();
FAIL_IF(decoder_events->events[1] != HTP_LOG_CODE_URI_DELIM_NON_COMPLIANT);
#endif
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_response_status_number(tx) != 0);
FAIL_IF(htp_tx_response_protocol_number(tx) != -1);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_response_status_number(tx) != 0);
FAIL_IF(htp_tx_response_protocol_number(tx) != -1);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_response_status_number(tx) != -0);
FAIL_IF(htp_tx_response_protocol_number(tx) != -1);
+ UTHFreeFlow(f);
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_response_status_number(tx) != -1);
FAIL_IF(htp_tx_response_protocol_number(tx) != -2);
+ UTHFreeFlow(f);
+
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
FAIL_IF(htp_tx_response_status_number(tx) != -1);
FAIL_IF(htp_tx_response_protocol_number(tx) != HTP_PROTOCOL_V1_0);
+ UTHFreeFlow(f);
+
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
HtpState *http_state = f->alstate;
FAIL_IF_NULL(http_state);
+ UTHFreeFlow(f);
+
AppLayerParserThreadCtxFree(alp_tctx);
StreamTcpFreeConfig(true);
- UTHFreeFlow(f);
PASS;
}
File *ptr = ffc->head;
FAIL_IF(ptr->state != FILE_STATE_CLOSED);
+ FLOW_DESTROY(&f);
+ UTHFreePackets(&p1, 1);
+ UTHFreePackets(&p2, 1);
+
AppLayerParserThreadCtxFree(alp_tctx);
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
StreamTcpFreeConfig(true);
HTPFreeConfig();
- FLOW_DESTROY(&f);
- UTHFreePackets(&p1, 1);
- UTHFreePackets(&p2, 1);
SCConfDeInit();
SCConfRestoreContextBackup();
HtpConfigRestoreBackup();