1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s4:dsdb/repl/replicated_objects.c - proof if "talloc_reference" doesn't return NULL

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Dec  1 17:14:01 CET 2010 on sn-devel-104
This commit is contained in:
Matthias Dieter Wallnöfer 2010-12-01 16:28:57 +01:00
parent 8742faf19f
commit 56290d0b33

View File

@ -359,7 +359,8 @@ WERROR dsdb_replicated_objects_convert(struct ldb_context *ldb,
* Ensure schema is kept valid for as long as 'out'
* which may contain pointers to it
*/
talloc_reference(out, schema);
schema = talloc_reference(out, schema);
W_ERROR_HAVE_NO_MEMORY(schema);
partition_dn = ldb_dn_new(out, ldb, partition_dn_str);
W_ERROR_HAVE_NO_MEMORY_AND_FREE(partition_dn, out);