From 7fe1e61ab908264f2ac7b8df666b254ae2af4488 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 27 Nov 2012 14:49:11 +0100 Subject: s4:dsdb/dirsync: check result of replUpToDateVector fetch on nc_root Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source4/dsdb/samdb/ldb_modules/dirsync.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit