1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s4:ldap_server: use talloc_zero for ldapsrv_sasl_postprocess_context

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 21:18:07 +02:00 committed by Andrew Bartlett
parent bd0a987c5c
commit dc56e8874f

View File

@ -441,7 +441,7 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
if (gensec_have_feature(conn->gensec, GENSEC_FEATURE_SIGN) ||
gensec_have_feature(conn->gensec, GENSEC_FEATURE_SEAL)) {
context = talloc(call, struct ldapsrv_sasl_postprocess_context);
context = talloc_zero(call, struct ldapsrv_sasl_postprocess_context);
if (context == NULL) {
return NT_STATUS_NO_MEMORY;
}