Fix what appears to be an off-by-one error in the IMAP dissector, causing

valgrind errors with the capture from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9263

svn path=/trunk/; revision=53062
This commit is contained in:
Evan Huus 2013-11-03 14:22:53 +00:00
parent 149de99d68
commit e960c882f8
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
folder_offset = offset;
folder_offset += (gint) (next_token - line);
folder_line = next_token;
folder_tokenlen = get_token_len(folder_line, folder_line + (linelen - tokenlen), &folder_next_token);
folder_tokenlen = get_token_len(folder_line, folder_line + (linelen - tokenlen - 1), &folder_next_token);
}
}