1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

s4:ldap_server: use talloc_zero() in ldapsrv_init_reply()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher
2017-05-11 19:07:04 +02:00
committed by Andrew Bartlett
parent 7bf0308a31
commit ace49db796

View File

@ -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;