diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-16 03:56:07 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-16 03:56:07 -0700 |
commit | f391e64a82b8e6bf5862175d3ebd71ff8d4b08e8 (patch) | |
tree | 0c20a1ee42a9d99a7eb9fc4c887eafb13da8cc59 /source4 | |
parent | 72217950d3a6ff0fc50eeebab13d4c9e119e6ba6 (diff) | |
parent | 79082f400e3d0c21b53d54bfb42954c2396110b9 (diff) | |
download | samba-f391e64a82b8e6bf5862175d3ebd71ff8d4b08e8.tar.gz samba-f391e64a82b8e6bf5862175d3ebd71ff8d4b08e8.tar.bz2 samba-f391e64a82b8e6bf5862175d3ebd71ff8d4b08e8.zip |
Merge branch 'master' of /home/tridge/samba/git/combined
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/common/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index c2636e127f..633279ead1 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -2311,6 +2311,14 @@ int dsdb_load_partition_usn(struct ldb_context *ldb, struct ldb_dn *dn, uint64_t ret = ldb_wait(req->handle, LDB_WAIT_ALL); } + if (ret == LDB_ERR_NO_SUCH_OBJECT) { + /* it hasn't been created yet, which means + an implicit value of zero */ + *uSN = 0; + talloc_free(tmp_ctx); + return LDB_SUCCESS; + } + if (ret != LDB_SUCCESS) { talloc_free(tmp_ctx); return ret; |