RTPS: Fixed ACKNACK mask processing

Change-Id: I81a83638c2318ba0d806263dbf692cd19b30ce9b
Reviewed-on: https://code.wireshark.org/review/14707
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Juanjo Martin 2016-03-30 16:53:17 +02:00 committed by Pascal Quantin
parent 0e8e4914fa
commit 3f6381fe2a
1 changed files with 1 additions and 1 deletions

View File

@ -2778,7 +2778,7 @@ static int rtps_util_add_bitmap(proto_tree *tree,
/* removes all the ending '0' */
last_one = strrchr(wmem_strbuf_get_str(temp_buff), '1');
if (last_one) {
wmem_strbuf_truncate(temp_buff, (gsize) (last_one - wmem_strbuf_get_str(temp_buff)));
wmem_strbuf_truncate(temp_buff, (gsize) (last_one - wmem_strbuf_get_str(temp_buff)) + 1);
}
if (wmem_strbuf_get_len(temp_buff) > 0) {