s4:libnet Allow 'net password change' to work on expired passwords
[samba.git] / source4 / libnet / libnet_join.c
index 0a4e357925af13a84bb079ca607138138935719e..81578a1a8859ba007623e65d3f972ba087461e3e 100644 (file)
@@ -479,7 +479,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
                return NT_STATUS_NO_MEMORY;
        }
        
-       connect_with_info = talloc(tmp_ctx, struct libnet_RpcConnect);
+       connect_with_info = talloc_zero(tmp_ctx, struct libnet_RpcConnect);
        if (!connect_with_info) {
                r->out.error_string = NULL;
                talloc_free(tmp_ctx);