s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[ira/wip.git] / source3 / passdb / pdb_ldap.c
index 2d33d2d954435bc4c0798111041cb3f364c07f6c..f8da0ff25539102ad9d373628a30208641eb6cf1 100644 (file)
@@ -6480,7 +6480,7 @@ static NTSTATUS pdb_init_ldapsam_common(struct pdb_methods **pdb_method, const c
 
        /* TODO: Setup private data and free */
 
-       if ( !(ldap_state = TALLOC_ZERO_P(*pdb_method, struct ldapsam_privates)) ) {
+       if ( !(ldap_state = talloc_zero(*pdb_method, struct ldapsam_privates)) ) {
                DEBUG(0, ("pdb_init_ldapsam_common: talloc() failed for ldapsam private_data!\n"));
                return NT_STATUS_NO_MEMORY;
        }