diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-06-07 16:32:21 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-06-07 16:32:21 +0000 |
commit | b4410bc9170fa6513c3cfcdf542fa9898962f69b (patch) | |
tree | 9f5c82fb6a61877186a761fbb27151a05fdbc212 /epan/dissectors/packet-bittorrent.c | |
parent | 42650b12813fb2cdcb71ce411b336cfbc55b4e43 (diff) |
Use find_or_create_conversation() rather than only conversation_new().
Fixes bug #2907: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2907
svn path=/trunk/; revision=33136
Diffstat (limited to 'epan/dissectors/packet-bittorrent.c')
-rw-r--r-- | epan/dissectors/packet-bittorrent.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c index 48d4dafb99..feb08fd71a 100644 --- a/epan/dissectors/packet-bittorrent.c +++ b/epan/dissectors/packet-bittorrent.c @@ -812,9 +812,7 @@ static gboolean test_bittorrent_packet (tvbuff_t *tvb, packet_info *pinfo, if (tvb_length(tvb) >= 20 && tvb_get_guint8(tvb, 0) == 19 && tvb_memeql(tvb, 1, "BitTorrent protocol", 19) == 0) { - /* XXXX why new ? */ - conversation = conversation_new (pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype, pinfo->srcport, pinfo->destport, 0); - + conversation = find_or_create_conversation(pinfo); conversation_set_dissector(conversation, dissector_handle); dissect_bittorrent(tvb, pinfo, tree); |