]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:ldap_server: use talloc_zero for ldapsrv_sasl_postprocess_context
authorStefan Metzmacher <metze@samba.org>
Thu, 11 May 2017 19:18:07 +0000 (21:18 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 15 Jun 2017 07:13:23 +0000 (09:13 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/ldap_server/ldap_bind.c

index 64ee1b3ba22c8189d0495d0de0a93bc2a266b3fc..e259727484a632728642609552ec4005ff763ef8 100644 (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;
                }