CVS pserver: fix infinite loop

Bug: 14364
Change-Id: I49377c5b06a7b3f2e919c8f8ae2c4d95b9b2c7eb
Reviewed-on: https://code.wireshark.org/review/25446
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2018-01-24 11:57:55 +01:00
parent fa26a00876
commit 92af82aaa7
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ dissect_cvspserver(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* di
ti = proto_tree_add_item(tree, proto_cvspserver, tvb, 0, -1, ENC_NA);
cvspserver_tree = proto_item_add_subtree(ti, ett_cvspserver);
for (offset = 0; tvb_reported_length_remaining(tvb, offset); offset = next_offset)
for (offset = 0; tvb_offset_exists(tvb, offset); offset = next_offset)
{
length = tvb_find_line_end_unquoted(tvb, offset, -1, &next_offset);
proto_tree_add_item(cvspserver_tree, hf_cvspserver_data, tvb, offset, length, ENC_UTF_8|ENC_NA);