summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/ldap_server/ldap_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c
index 1f0c7afdd91..5e8ce648233 100644
--- a/source4/ldap_server/ldap_backend.c
+++ b/source4/ldap_server/ldap_backend.c
@@ -237,11 +237,11 @@ struct ldapsrv_reply *ldapsrv_init_reply(struct ldapsrv_call *call, uint8_t type
{
struct ldapsrv_reply *reply;
- reply = talloc(call, struct ldapsrv_reply);
+ reply = talloc_zero(call, struct ldapsrv_reply);
if (!reply) {
return NULL;
}
- reply->msg = talloc(reply, struct ldap_message);
+ reply->msg = talloc_zero(reply, struct ldap_message);
if (reply->msg == NULL) {
talloc_free(reply);
return NULL;