detect/dce.stub_data: update buffer initialization logic

pull/8482/head
Victor Julien 3 years ago
parent e31ead9bc2
commit f6fd1b017f

@ -72,7 +72,7 @@ static InspectionBuffer *GetSMBData(DetectEngineThreadCtx *det_ctx,
void *txv, const int list_id)
{
InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
if (buffer->inspect == NULL) {
if (!buffer->initialized) {
uint32_t data_len = 0;
const uint8_t *data = NULL;
uint8_t dir = flow_flags & (STREAM_TOSERVER|STREAM_TOCLIENT);
@ -92,7 +92,7 @@ static InspectionBuffer *GetDCEData(DetectEngineThreadCtx *det_ctx,
void *txv, const int list_id)
{
InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
if (buffer->inspect == NULL) {
if (!buffer->initialized) {
uint32_t data_len = 0;
const uint8_t *data = NULL;
uint8_t endianness;

Loading…
Cancel
Save