aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--asn1/ldap/packet-ldap-template.c4
-rw-r--r--epan/dissectors/packet-ldap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/asn1/ldap/packet-ldap-template.c b/asn1/ldap/packet-ldap-template.c
index 60dc7953f9..597d66d6d0 100644
--- a/asn1/ldap/packet-ldap-template.c
+++ b/asn1/ldap/packet-ldap-template.c
@@ -1228,7 +1228,7 @@ static void
}
if (decr_tvb) {
- proto_tree *enc_tree;
+ proto_tree *enc_tree = NULL;
/*
* The LDAP message was encrypted in the packet, and has
@@ -1244,7 +1244,7 @@ static void
}
dissect_ldap_payload(decr_tvb, pinfo, enc_tree, ldap_info, is_mscldap);
} else if (plain_tvb) {
- proto_tree *plain_tree;
+ proto_tree *plain_tree = NULL;
/*
* The LDAP message wasn't encrypted in the packet;
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c
index 03ac98c025..2bbd138f9a 100644
--- a/epan/dissectors/packet-ldap.c
+++ b/epan/dissectors/packet-ldap.c
@@ -4144,7 +4144,7 @@ static void
}
if (decr_tvb) {
- proto_tree *enc_tree;
+ proto_tree *enc_tree = NULL;
/*
* The LDAP message was encrypted in the packet, and has
@@ -4160,7 +4160,7 @@ static void
}
dissect_ldap_payload(decr_tvb, pinfo, enc_tree, ldap_info, is_mscldap);
} else if (plain_tvb) {
- proto_tree *plain_tree;
+ proto_tree *plain_tree = NULL;
/*
* The LDAP message wasn't encrypted in the packet;