aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wbxml.c
diff options
context:
space:
mode:
authorobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>2003-12-16 22:39:32 +0000
committerobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>2003-12-16 22:39:32 +0000
commit4a59e2a5849e2329276894805d4ed3e8df39053c (patch)
tree18ee424df5d919e759ef8172b58e8fb1c0324d9a /packet-wbxml.c
parent39776240dc78811d9b008403582f0991b0e967e1 (diff)
WBXML dissector: Move summary update code outside of if (tree) construct.
WSP dissector: clean up redirect dissection, add generic address field dissection, add Session Initiation Request dissection, rewrite capability dissection, and various small updates. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9301 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wbxml.c')
-rw-r--r--packet-wbxml.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/packet-wbxml.c b/packet-wbxml.c
index 7c16b62992..cce765f059 100644
--- a/packet-wbxml.c
+++ b/packet-wbxml.c
@@ -3,7 +3,7 @@
* Routines for wbxml dissection
* Copyright 2003, Olivier Biot <olivier.biot (ad) siemens.com>
*
- * $Id: packet-wbxml.c,v 1.21 2003/12/15 22:38:29 obiot Exp $
+ * $Id: packet-wbxml.c,v 1.22 2003/12/16 22:39:32 obiot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2207,14 +2207,14 @@ dissect_wbxml(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, " (WBXML %s)", summary);
+ /* create display subtree for the protocol */
+ ti = proto_tree_add_item (tree, proto_wbxml, tvb, 0, -1, FALSE);
+ proto_item_append_text(ti, ", Version: %s", summary);
+ g_free(summary);
/*
* Now show the protocol subtree, if tree is set.
*/
if ( tree ) {
- /* create display subtree for the protocol */
- ti = proto_tree_add_item (tree, proto_wbxml, tvb, 0, -1, FALSE);
- proto_item_append_text(ti, ", Version: %s", summary);
- g_free(summary);
wbxml_tree = proto_item_add_subtree(ti, ett_wbxml);
/* WBXML Version */
@@ -2303,7 +2303,6 @@ dissect_wbxml(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
return;
}
- g_free(summary);
}