HtpTxUserData *htud, int index)
{
uint32_t window_size = 0;
- int resize = 0;
/* how much from before body_inspected will we consider? */
uint32_t cfg_win =
SCLogDebug("weird: body size is %uk", window_size/1024);
window_size = MAX_WINDOW;
}
- if (window_size > det_ctx->hsbd[index].buffer_size)
- resize = 1;
- if (det_ctx->hsbd[index].buffer == NULL || resize) {
+ if (det_ctx->hsbd[index].buffer == NULL || window_size > det_ctx->hsbd[index].buffer_size) {
void *ptmp;
if ((ptmp = HTPRealloc(det_ctx->hsbd[index].buffer, det_ctx->hsbd[index].buffer_size, window_size)) == NULL) {
}
det_ctx->hsbd[index].buffer = ptmp;
det_ctx->hsbd[index].buffer_size = window_size;
- resize = 0;
}
uint32_t left_edge = htud->response_body.body_inspected - cfg_win;