From cfb3172f33906b3683d63971c3ff7f9f6c3b7504 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Sat, 31 Oct 2009 13:03:12 +0000 Subject: Populate protocol column before digging into the buffer (we might throw an exception while doing that) svn path=/trunk/; revision=30780 --- epan/dissectors/packet-jmirror.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-jmirror.c') diff --git a/epan/dissectors/packet-jmirror.c b/epan/dissectors/packet-jmirror.c index 2f06fc317e..e4374d5092 100644 --- a/epan/dissectors/packet-jmirror.c +++ b/epan/dissectors/packet-jmirror.c @@ -111,15 +111,15 @@ dissect_jmirror(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if ( !( dissector_handle = get_heuristic_handle(tvb) ) ) return 0; + /* Populate the Protocol field in the Wireshark packet display */ + col_set_str(pinfo->cinfo, COL_PROTOCOL, "Jmirror"); + /* Build the Jmirror Identifier value and store the string in a buffer */ midval = tvb_get_ntohl(tvb, offset); /* Build the Session Identifier value and store the string in a buffer */ sidval = tvb_get_ntohl(tvb, offset+MIRROR_ID_SZ); - /* Populate the Protocol field in the Wireshark packet display */ - col_set_str(pinfo->cinfo, COL_PROTOCOL, "Jmirror"); - /* Populate the Info field in the Wireshark packet display */ col_add_fstr(pinfo->cinfo, COL_INFO, "MID: 0X%08x (%d), SID: 0x%08x (%d)", midval, midval, sidval, sidval); -- cgit v1.2.3