From 3388bde488ac5c54044a487ca4199f5dda0715ba Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 3 Sep 2001 10:33:12 +0000 Subject: Instead of having a single datum attached to a conversation, have a list of protocol-id-plus-datum pairs, so that multiple protocols can attach information to the same conversation. Dissectors that attach information to a conversation should not assume that if they find a conversation it has one of its data attached to it; the conversation might've been created by another dissector. svn path=/trunk/; revision=3901 --- packet-snmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packet-snmp.c') diff --git a/packet-snmp.c b/packet-snmp.c index 40f6ecd894..9528ecc54a 100644 --- a/packet-snmp.c +++ b/packet-snmp.c @@ -8,7 +8,7 @@ * * See RFCs 1905, 1906, 1909, and 1910 for SNMPv2u. * - * $Id: packet-snmp.c,v 1.70 2001/09/03 08:19:12 guy Exp $ + * $Id: packet-snmp.c,v 1.71 2001/09/03 10:33:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -2130,8 +2130,7 @@ dissect_snmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) pinfo->srcport, 0, NO_PORT_B); if (conversation == NULL) { conversation = conversation_new(&pinfo->src, &pinfo->dst, PT_UDP, - pinfo->srcport, 0, NULL, - NO_PORT2); + pinfo->srcport, 0, NO_PORT2); conversation_set_dissector(conversation, dissect_snmp); } } -- cgit v1.2.3