forked from osmocom/wireshark
Follow: Remove check for FOLLOW_TCP for fragments in Qt
Only TCP uses fragments, but we don't need to check FOLLOW_TCP because the fragments pointers exist but are null if not being used. See the similar code in epan/follow.c Part of making it simpler for dissectors to register with Follow.
This commit is contained in:
parent
4d2d0b7f6d
commit
0a840b5dd8
|
@ -533,7 +533,6 @@ void FollowStreamDialog::resetStream()
|
|||
g_list_free(follow_info_.payload);
|
||||
|
||||
//Only TCP stream uses fragments
|
||||
if (follow_type_ == FOLLOW_TCP) {
|
||||
for (cur = follow_info_.fragments[0]; cur; cur = gxx_list_next(cur)) {
|
||||
follow_record = gxx_list_data(follow_record_t *, cur);
|
||||
if (follow_record->data) {
|
||||
|
@ -550,7 +549,6 @@ void FollowStreamDialog::resetStream()
|
|||
g_free(follow_record);
|
||||
}
|
||||
follow_info_.fragments[1] = Q_NULLPTR;
|
||||
}
|
||||
|
||||
free_address(&follow_info_.client_ip);
|
||||
free_address(&follow_info_.server_ip);
|
||||
|
|
Loading…
Reference in New Issue