From bf8dfcaffec21d380a80f5062c3ffa20f693a94a Mon Sep 17 00:00:00 2001 From: wmeier Date: Mon, 7 Jun 2010 16:32:21 +0000 Subject: Use find_or_create_conversation() rather than only conversation_new(). Fixes bug #2907: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2907 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33136 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-bittorrent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'epan/dissectors/packet-bittorrent.c') 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); -- cgit v1.2.3