aboutsummaryrefslogtreecommitdiffstats
path: root/packet-diameter.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-02-20 08:10:14 +0000
committerGuy Harris <guy@alum.mit.edu>2001-02-20 08:10:14 +0000
commitf0798c601189d8396980e8701c0476a5e703f4e6 (patch)
tree0108af79ede214967062b51a325af338cecc235f /packet-diameter.c
parent60e9ef8f05e01fe03f925e3f2c2f1f33fdc3c525 (diff)
In the DIAMETER dissector, clear the Info column before fetching
anything from the packet, so that if we throw an exception before setting the Info column, it doesn't have stuff left over from the previous dissector. Tvbuffify the RADIUS dissector. svn path=/trunk/; revision=3055
Diffstat (limited to 'packet-diameter.c')
-rw-r--r--packet-diameter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-diameter.c b/packet-diameter.c
index a4de029f56..bf02b4c004 100644
--- a/packet-diameter.c
+++ b/packet-diameter.c
@@ -1,7 +1,7 @@
/* packet-diameter.c
* Routines for DIAMETER packet disassembly
*
- * $Id: packet-diameter.c,v 1.18 2001/02/20 01:20:24 guy Exp $
+ * $Id: packet-diameter.c,v 1.19 2001/02/20 08:10:14 guy Exp $
*
* Copyright (c) 2001 by David Frascone <dave@frascone.com>
*
@@ -177,6 +177,8 @@ static void dissect_diameter(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
/* Make entries in Protocol column and Info column on summary display */
if (check_col(pinfo->fd, COL_PROTOCOL))
col_add_str(pinfo->fd, COL_PROTOCOL, "Diameter");
+ if (check_col(pinfo->fd, COL_INFO))
+ col_clear(pinfo->fd, COL_INFO);
/* Copy our header */
tvb_memcpy(tvb, (guint8*) &dh, offset, sizeof(dh));