|
|
|
@ -1063,10 +1063,7 @@ static StreamingBufferRegion *FindLargestRegionForOffset(const StreamingBuffer *
|
|
|
|
if (!RegionsIntersect(sb, cfg, r, offset, data_re))
|
|
|
|
if (!RegionsIntersect(sb, cfg, r, offset, data_re))
|
|
|
|
return candidate;
|
|
|
|
return candidate;
|
|
|
|
|
|
|
|
|
|
|
|
if (candidate == NULL) {
|
|
|
|
if (r->buf_size > candidate->buf_size) {
|
|
|
|
candidate = r;
|
|
|
|
|
|
|
|
SCLogDebug("candidate %p", candidate);
|
|
|
|
|
|
|
|
} else if (r->buf_size > candidate->buf_size) {
|
|
|
|
|
|
|
|
SCLogDebug("candidate %p as size %u > %u", candidate, r->buf_size, candidate->buf_size);
|
|
|
|
SCLogDebug("candidate %p as size %u > %u", candidate, r->buf_size, candidate->buf_size);
|
|
|
|
candidate = r;
|
|
|
|
candidate = r;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|