aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bssap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-01 23:05:09 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-01 23:05:09 +0000
commitad0107ddf4d60aa230e0586b77fc6bd90bc927a4 (patch)
tree2fc6c3dd65c8666b83afdc1c9c97519a4abf8b74 /packet-bssap.c
parent42718f60b41f336cfb42f8714b5ad954d524119c (diff)
downloadwireshark-ad0107ddf4d60aa230e0586b77fc6bd90bc927a4.tar.gz
wireshark-ad0107ddf4d60aa230e0586b77fc6bd90bc927a4.tar.bz2
wireshark-ad0107ddf4d60aa230e0586b77fc6bd90bc927a4.zip
From Michael Lum:
add a message statistics tap for ANSI A interface for Tethereal; fix the BSSAP, BSMAP, and DTAP interface dissectors to call subdissectors even if no protocol tree is being built. svn path=/trunk/; revision=9132
Diffstat (limited to 'packet-bssap.c')
-rw-r--r--packet-bssap.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/packet-bssap.c b/packet-bssap.c
index 8f9c1a50b1..f778018af9 100644
--- a/packet-bssap.c
+++ b/packet-bssap.c
@@ -7,7 +7,7 @@
* Copyright 2003, Michael Lum <mlum [AT] telostech.com>
* In association with Telos Technology Inc.
*
- * $Id: packet-bssap.c,v 1.3 2003/10/28 18:08:52 guy Exp $
+ * $Id: packet-bssap.c,v 1.4 2003/12/01 23:05:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -356,15 +356,12 @@ dissect_bssap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_set_str(pinfo->cinfo, COL_PROTOCOL, ((bssap_or_bsap_global == BSSAP) ? "BSSAP" : "BSAP"));
}
- if (tree)
- {
- /*
- * create the bssap protocol tree
- */
- proto_tree_add_item_hidden(tree, proto_bssap, tvb, 0, -1, FALSE);
- bssap_item = proto_tree_add_text(tree, tvb, 0, -1, (bssap_or_bsap_global == BSSAP) ? "BSSAP" : "BSAP");
- bssap_tree = proto_item_add_subtree(bssap_item, ett_bssap);
- }
+ /*
+ * create the bssap protocol tree
+ */
+ proto_tree_add_item_hidden(tree, proto_bssap, tvb, 0, -1, FALSE);
+ bssap_item = proto_tree_add_text(tree, tvb, 0, -1, (bssap_or_bsap_global == BSSAP) ? "BSSAP" : "BSAP");
+ bssap_tree = proto_item_add_subtree(bssap_item, ett_bssap);
/* dissect the message */