summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-02 17:14:40 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-03 10:27:59 +1100
commitb65b88740c4920232a02f8e3c535e31656697246 (patch)
tree2b3c7b25806c7f0fe632624abff6129c28e1cfc7
parenta2929a638fa6824e38beec7eaa78ac108c522f50 (diff)
downloadsamba-b65b88740c4920232a02f8e3c535e31656697246.tar.gz
samba-b65b88740c4920232a02f8e3c535e31656697246.tar.bz2
samba-b65b88740c4920232a02f8e3c535e31656697246.zip
s4-drs: fixed updating of uSNChanged in replmd_modify
Updating of uSNChanged broke in a recent change
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index bfde2df1d1..9ed70d96eb 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -837,7 +837,6 @@ static int replmd_modify(struct ldb_module *module, struct ldb_request *req)
struct ldb_message *msg;
struct ldb_result *res;
time_t t = time(NULL);
- uint64_t seq_num = 0;
int ret;
/* do not manipulate our control entries */
@@ -900,13 +899,13 @@ static int replmd_modify(struct ldb_module *module, struct ldb_request *req)
/* we only change whenChanged and uSNChanged if the seq_num
has changed */
- if (seq_num != 0) {
+ if (ac->seq_num != 0) {
if (add_time_element(msg, "whenChanged", t) != LDB_SUCCESS) {
talloc_free(ac);
return ret;
}
- if (add_uint64_element(msg, "uSNChanged", seq_num) != LDB_SUCCESS) {
+ if (add_uint64_element(msg, "uSNChanged", ac->seq_num) != LDB_SUCCESS) {
talloc_free(ac);
return ret;
}