else
return nullptr;
- // FIXIT-L IPV6 regression test fails with IPv6 anomaly check enabled and
- // 'other_section' is NULL. Seems to be a bug in HNI. Needs investigation
- if (!other_section)
+ assert(other_section != nullptr);
+ if (other_section == nullptr)
return nullptr;
-
+
const Field& start_line = other_section->get_classic_buffer(id, 0, 0);
if (start_line.length() > 0)
{
#include "protocols/packet.h"
#include "http_common.h"
+#include "http_context_data.h"
#include "http_cutter.h"
#include "http_enum.h"
#include "http_inspect.h"
prepare_flush(session_data, nullptr, SEC_HEADER, 0, 0, 0, false, 0, 0);
my_inspector->process((const uint8_t*)"", 0, flow, SRC_SERVER, false, nullptr);
session_data->transaction[SRC_SERVER]->clear_section();
+ HttpContextData* hcd = (HttpContextData*)DetectionEngine::get_data(HttpContextData::ips_id);
+ assert(hcd != nullptr);
+ if (hcd != nullptr)
+ hcd->clear();
}
HttpCutter*& cutter = session_data->cutter[source_id];