summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-01 16:28:57 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-01 17:14:01 +0100
commit56290d0b337e2e01b021e98d1252ae604cf5c0f8 (patch)
tree9ed88441af7c7879dc5a804157723f95c1aec518 /source4/dsdb/repl
parent8742faf19f814d5bfc5900d885c833ae0e8f8794 (diff)
downloadsamba-56290d0b337e2e01b021e98d1252ae604cf5c0f8.tar.gz
samba-56290d0b337e2e01b021e98d1252ae604cf5c0f8.tar.bz2
samba-56290d0b337e2e01b021e98d1252ae604cf5c0f8.zip
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
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r--source4/dsdb/repl/replicated_objects.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c
index 0965538570..1ea1640e29 100644
--- a/source4/dsdb/repl/replicated_objects.c
+++ b/source4/dsdb/repl/replicated_objects.c
@@ -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);