From chen li

handle list ending delimiter in bt-dth peer list

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8759

svn path=/trunk/; revision=49729
This commit is contained in:
Martin Kaiser 2013-06-03 21:01:43 +00:00
parent a5bfcbf2a9
commit 9475131092
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
offset += string_len;
}
}
if (tvb_get_guint8(tvb,offset)=='e') /* list ending delimiter */
offset++;
proto_item_set_text( ti, "%s: %d peers", label, peer_index );
col_append_fstr( pinfo->cinfo, COL_INFO, "reply=%d peers ", peer_index );
*result = ep_strdup_printf("%d peers", peer_index);