From: Stefan Metzmacher Date: Thu, 11 May 2017 17:07:04 +0000 (+0200) Subject: s4:ldap_server: use talloc_zero() in ldapsrv_init_reply() X-Git-Tag: ldb-1.1.31~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace49db796a121bd35741e86e3e0aa98be48e81f;p=thirdparty%2Fsamba.git s4:ldap_server: use talloc_zero() in ldapsrv_init_reply() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- 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;