summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-27 14:49:11 +0100
committerMichael Adam <obnox@samba.org>2012-11-30 17:17:19 +0100
commit7fe1e61ab908264f2ac7b8df666b254ae2af4488 (patch)
treecc16303bdc3d04191ab53dc04e76e413fe288b12 /source4/dsdb/samdb
parentac9bd1e63a8adfb96eb5c9f996e60c2d99aba5e1 (diff)
downloadsamba-7fe1e61ab908264f2ac7b8df666b254ae2af4488.tar.gz
samba-7fe1e61ab908264f2ac7b8df666b254ae2af4488.tar.bz2
samba-7fe1e61ab908264f2ac7b8df666b254ae2af4488.zip
s4:dsdb/dirsync: check result of replUpToDateVector fetch on nc_root
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/dirsync.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dirsync.c b/source4/dsdb/samdb/ldb_modules/dirsync.c
index 3f22f15beb..701170a2ca 100644
--- a/source4/dsdb/samdb/ldb_modules/dirsync.c
+++ b/source4/dsdb/samdb/ldb_modules/dirsync.c
@@ -729,6 +729,10 @@ static int dirsync_create_vector(struct ldb_request *req,
nc_root,
attrVector,
DSDB_FLAG_NEXT_MODULE, req);
+ if (ret != LDB_SUCCESS) {
+ return ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR,
+ "Unable to get replUpToDateVector for current NC");
+ }
if (resVector->count != 0) {
DATA_BLOB blob;