aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-acse.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-11-03 19:34:44 +0000
committerGuy Harris <guy@alum.mit.edu>2004-11-03 19:34:44 +0000
commitaffeb0100962b19fd83ece265ad4c0869b4510ee (patch)
tree46a9d82a916a43eac2f7adbc6860dbadb33f39b1 /epan/dissectors/packet-acse.c
parent62fce7b2d741c75e0b2cbf3eefc17053bfa4e23c (diff)
From Yuriy Sidelnikov: take stuff that has to be done regardless of
whether a protocol tree is being built outside "if (tree)". svn path=/trunk/; revision=12478
Diffstat (limited to 'epan/dissectors/packet-acse.c')
-rw-r--r--epan/dissectors/packet-acse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-acse.c b/epan/dissectors/packet-acse.c
index 75c9652e25..f3fbeb8af5 100644
--- a/epan/dissectors/packet-acse.c
+++ b/epan/dissectors/packet-acse.c
@@ -305,7 +305,7 @@ static int read_length(ASN1_SCK *a, proto_tree *tree, int hf_id, guint *len)
if (len)
*len = length;
- if (tree && hf_id)
+ if (hf_id)
proto_tree_add_uint(tree, hf_id, a->tvb, start, a->offset-start,
length);
@@ -333,7 +333,7 @@ static int read_integer_value(ASN1_SCK *a, proto_tree *tree, int hf_id,
if (i)
*i = integer;
- if (tree && hf_id)
+ if (hf_id)
temp_item = proto_tree_add_uint(tree, hf_id, a->tvb, start,
a->offset-start, integer);
@@ -1506,7 +1506,6 @@ dissect_pdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
}
return FALSE;
}
- if(tree)
{
if(session->spdu_type == SES_CONNECTION_REQUEST)
{