summaryrefslogtreecommitdiff
path: root/asn1/x509af/packet-x509af-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/x509af/packet-x509af-template.c')
-rw-r--r--asn1/x509af/packet-x509af-template.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/asn1/x509af/packet-x509af-template.c b/asn1/x509af/packet-x509af-template.c
index b64a474ae2..8e854f5da9 100644
--- a/asn1/x509af/packet-x509af-template.c
+++ b/asn1/x509af/packet-x509af-template.c
@@ -62,8 +62,7 @@ const char *x509af_get_last_algorithm_id(void) {
static int
dissect_pkix_crl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data _U_)
{
- proto_item *item=NULL;
- proto_tree *tree=NULL;
+ proto_tree *tree;
asn1_ctx_t asn1_ctx;
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
@@ -72,10 +71,7 @@ dissect_pkix_crl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, voi
col_set_str(pinfo->cinfo, COL_INFO, "Certificate Revocation List");
- if(parent_tree){
- item=proto_tree_add_text(parent_tree, tvb, 0, -1, "Certificate Revocation List");
- tree = proto_item_add_subtree(item, ett_pkix_crl);
- }
+ tree=proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_pkix_crl, NULL, "Certificate Revocation List");
return dissect_x509af_CertificateList(FALSE, tvb, 0, &asn1_ctx, tree, -1);
}