From ace49db796a121bd35741e86e3e0aa98be48e81f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 11 May 2017 19:07:04 +0200 Subject: [PATCH] s4:ldap_server: use talloc_zero() in ldapsrv_init_reply() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/ldap_server/ldap_backend.c | 4 ++-- 1 file 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; -- 2.47.2