Increase bufffers_list_len, only we open up a space for a new tx.
if (HCBDCreateSpace(det_ctx, 1) < 0)
goto end;
index = 0;
+
+ if (det_ctx->hcbd_buffers_list_len == 0) {
+ det_ctx->hcbd_start_tx_id = tx_id;
+ }
+ det_ctx->hcbd_buffers_list_len++;
} else {
if ((tx_id - det_ctx->hcbd_start_tx_id) < det_ctx->hcbd_buffers_list_len) {
if (det_ctx->hcbd[(tx_id - det_ctx->hcbd_start_tx_id)].buffer_len != 0) {
} else {
if (HCBDCreateSpace(det_ctx, (tx_id - det_ctx->hcbd_start_tx_id) + 1) < 0)
goto end;
+
+ if (det_ctx->hcbd_buffers_list_len == 0) {
+ det_ctx->hcbd_start_tx_id = tx_id;
+ }
+ det_ctx->hcbd_buffers_list_len++;
}
index = (tx_id - det_ctx->hcbd_start_tx_id);
}
- if (det_ctx->hcbd_buffers_list_len == 0) {
- det_ctx->hcbd_start_tx_id = tx_id;
- }
- det_ctx->hcbd_buffers_list_len++;
-
htp_tx_t *tx = list_get(htp_state->connp->conn->transactions, tx_id);
if (tx == NULL) {
SCLogDebug("no tx");
if (HHDCreateSpace(det_ctx, 1) < 0)
goto end;
index = 0;
+
+ if (det_ctx->hhd_buffers_list_len == 0) {
+ det_ctx->hhd_start_tx_id = tx_id;
+ }
+ det_ctx->hhd_buffers_list_len++;
} else {
if ((tx_id - det_ctx->hhd_start_tx_id) < det_ctx->hhd_buffers_list_len) {
if (det_ctx->hhd_buffers_len[(tx_id - det_ctx->hhd_start_tx_id)] != 0) {
} else {
if (HHDCreateSpace(det_ctx, (tx_id - det_ctx->hhd_start_tx_id) + 1) < 0)
goto end;
+
+ if (det_ctx->hhd_buffers_list_len == 0) {
+ det_ctx->hhd_start_tx_id = tx_id;
+ }
+ det_ctx->hhd_buffers_list_len++;
}
index = (tx_id - det_ctx->hhd_start_tx_id);
}
- if (det_ctx->hhd_buffers_list_len == 0) {
- det_ctx->hhd_start_tx_id = tx_id;
- }
- det_ctx->hhd_buffers_list_len++;
-
htp_tx_t *tx = list_get(htp_state->connp->conn->transactions, tx_id);
if (tx == NULL) {
SCLogDebug("no tx");
if (HSBDCreateSpace(det_ctx, 1) < 0)
goto end;
index = 0;
+
+ if (det_ctx->hsbd_buffers_list_len == 0) {
+ det_ctx->hsbd_start_tx_id = tx_id;
+ }
+ det_ctx->hsbd_buffers_list_len++;
} else {
if ((tx_id - det_ctx->hsbd_start_tx_id) < det_ctx->hsbd_buffers_list_len) {
if (det_ctx->hsbd[(tx_id - det_ctx->hsbd_start_tx_id)].buffer_len != 0) {
} else {
if (HSBDCreateSpace(det_ctx, (tx_id - det_ctx->hsbd_start_tx_id) + 1) < 0)
goto end;
+
+ if (det_ctx->hsbd_buffers_list_len == 0) {
+ det_ctx->hsbd_start_tx_id = tx_id;
+ }
+ det_ctx->hsbd_buffers_list_len++;
}
index = (tx_id - det_ctx->hsbd_start_tx_id);
}
- if (det_ctx->hsbd_buffers_list_len == 0) {
- det_ctx->hsbd_start_tx_id = tx_id;
- }
- det_ctx->hsbd_buffers_list_len++;
-
htp_tx_t *tx = list_get(htp_state->connp->conn->transactions, tx_id);
if (tx == NULL) {
SCLogDebug("no tx");