diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-06-27 10:17:39 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-06-27 10:17:39 +0000 |
commit | 9334a49cb1ed8548e49f02bba5df73be3193f68a (patch) | |
tree | 38f9c09803f712b2b5451db138925bae8580e702 /epan/dissectors/packet-imap.c | |
parent | 31bd48bce3a349a3ae9e3c810d8f3ba382d24b2f (diff) |
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8857 :
Do not assume that we must have at least 1 character present before \r\n
svn path=/trunk/; revision=50185
Diffstat (limited to 'epan/dissectors/packet-imap.c')
-rw-r--r-- | epan/dissectors/packet-imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-imap.c b/epan/dissectors/packet-imap.c index cb7247458e..70f9f8936d 100644 --- a/epan/dissectors/packet-imap.c +++ b/epan/dissectors/packet-imap.c @@ -112,7 +112,7 @@ dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) hidden_item = proto_tree_add_boolean(imap_tree, hf_imap_isrequest, tvb, 0, 0, is_request); PROTO_ITEM_SET_HIDDEN(hidden_item); - while(tvb_length_remaining(tvb, offset) > 2) { + while(tvb_length_remaining(tvb, offset) > 0) { /* * Find the end of each line |