schema->{classes,attributes} are the DLIST pointer not an array.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* as the rest won't be modified and this is for
* a short lived object.
*/
* as the rest won't be modified and this is for
* a short lived object.
*/
- tmp2 = talloc(dest_schema->classes, struct dsdb_class);
+ tmp2 = talloc(dest_schema, struct dsdb_class);
if (tmp2 == NULL) {
return WERR_NOMEM;
}
if (tmp2 == NULL) {
return WERR_NOMEM;
}
* as the rest won't be modified and this is for
* a short lived object.
*/
* as the rest won't be modified and this is for
* a short lived object.
*/
- tmp2 = talloc(dest_schema->attributes, struct dsdb_attribute);
+ tmp2 = talloc(dest_schema, struct dsdb_attribute);
if (tmp2 == NULL) {
return WERR_NOMEM;
}
if (tmp2 == NULL) {
return WERR_NOMEM;
}