aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/rtse/packet-rtse-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/rtse/packet-rtse-template.c')
-rw-r--r--asn1/rtse/packet-rtse-template.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/asn1/rtse/packet-rtse-template.c b/asn1/rtse/packet-rtse-template.c
index 83386f5d6e..27c26b854b 100644
--- a/asn1/rtse/packet-rtse-template.c
+++ b/asn1/rtse/packet-rtse-template.c
@@ -207,19 +207,13 @@ dissect_rtse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
asn1_ctx_t asn1_ctx;
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
- /* save parent_tree so subdissectors can create new top nodes */
- top_tree=parent_tree;
-
- /* do we have application context from the acse dissector? */
- if( data == NULL ){
- if(parent_tree){
- proto_tree_add_text(parent_tree, tvb, offset, -1,
- "Internal error:can't get application context from ACSE dissector.");
- }
+ /* do we have application context from the acse dissector? */
+ if (data == NULL)
return 0;
- }
+ session = (struct SESSION_DATA_STRUCTURE*)data;
- session = ( (struct SESSION_DATA_STRUCTURE*)data);
+ /* save parent_tree so subdissectors can create new top nodes */
+ top_tree=parent_tree;
asn1_ctx.private_data = session;