@@ -69,13 +69,12 @@ static int g_keyword_thread_id = 0;
6969static HttpHeaderThreadDataConfig g_td_config = { BUFFER_SIZE_STEP };
7070
7171static uint8_t * GetBufferForTX (
72- htp_tx_t * tx , DetectEngineThreadCtx * det_ctx , Flow * f , uint8_t flags , uint32_t * buffer_len )
72+ htp_tx_t * tx , DetectEngineThreadCtx * det_ctx , uint8_t flags , uint32_t * buffer_len )
7373{
7474 * buffer_len = 0 ;
7575
7676 HttpHeaderThreadData * hdr_td = NULL ;
77- HttpHeaderBuffer * buf =
78- HttpHeaderGetBufferSpace (det_ctx , f , flags , g_keyword_thread_id , & hdr_td );
77+ HttpHeaderBuffer * buf = HttpHeaderGetBufferSpace (det_ctx , flags , g_keyword_thread_id , & hdr_td );
7978 if (unlikely (buf == NULL )) {
8079 return NULL ;
8180 }
@@ -186,7 +185,7 @@ static uint8_t DetectEngineInspectBufferHttpHeader(DetectEngineCtx *de_ctx,
186185 }
187186
188187 uint32_t rawdata_len = 0 ;
189- uint8_t * rawdata = GetBufferForTX (txv , det_ctx , f , flags , & rawdata_len );
188+ uint8_t * rawdata = GetBufferForTX (txv , det_ctx , flags , & rawdata_len );
190189 if (rawdata_len == 0 ) {
191190 SCLogDebug ("no data" );
192191 if (engine -> match_on_null && eof ) {
@@ -245,7 +244,7 @@ static void PrefilterMpmHttpHeader(DetectEngineThreadCtx *det_ctx, const void *p
245244 InspectionBuffer * buffer = InspectionBufferGet (det_ctx , list_id );
246245 if (buffer -> inspect == NULL ) {
247246 uint32_t rawdata_len = 0 ;
248- uint8_t * rawdata = GetBufferForTX (txv , det_ctx , f , flags , & rawdata_len );
247+ uint8_t * rawdata = GetBufferForTX (txv , det_ctx , flags , & rawdata_len );
249248 if (rawdata_len == 0 )
250249 return ;
251250
0 commit comments