defrag: break out of loop in linux profile when able to

pull/3479/head
Jason Ish 8 years ago committed by Victor Julien
parent aa98678662
commit 9b86c7c5c0

@ -679,6 +679,7 @@ DefragInsertFrag(ThreadVars *tv, DecodeThreadVars *dtv, DefragTracker *tracker,
frag_end > prev->offset + prev->ltrim) {
prev->ltrim += frag_end - (prev->offset + prev->ltrim);
overlap++;
goto insert;
}
/* If the new fragment completely overlaps the
@ -689,7 +690,9 @@ DefragInsertFrag(ThreadVars *tv, DecodeThreadVars *dtv, DefragTracker *tracker,
if (frag_offset + ltrim <= prev->offset + prev->ltrim &&
frag_end >= prev->offset + prev->data_len) {
prev->skip = 1;
goto insert;
}
break;
case DEFRAG_POLICY_WINDOWS:
/* If new fragment fits inside a previous fragment, drop it. */

Loading…
Cancel
Save