git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cec541
)
sq
author
Stefan Metzmacher
<metze@samba.org>
Fri, 19 Jul 2013 07:59:29 +0000
(09:59 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sun, 29 Jun 2014 21:45:24 +0000
(23:45 +0200)
source4/dsdb/repl/replicated_objects.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/repl/replicated_objects.c
b/source4/dsdb/repl/replicated_objects.c
index 4614857780c9473c4decc41c38723780e5414181..78b3d75ae8d11595e1a0678033b3b4987521f5bf 100644
(file)
--- a/
source4/dsdb/repl/replicated_objects.c
+++ b/
source4/dsdb/repl/replicated_objects.c
@@
-772,6
+772,10
@@
WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb,
/* Force a reload of whatever schema is on the DB, if it is DB based */
struct dsdb_schema *refresh_schema = NULL;
refresh_schema = dsdb_get_schema(ldb, tmp_ctx);
+ if (!refresh_schema) {
+ DEBUG(0,("Schema load failed\n"));
+ return WERR_DS_DRA_INTERNAL_ERROR;
+ }
refresh_schema->last_refresh = 0;
refresh_schema->metadata_usn = 0;
talloc_unlink(tmp_ctx, refresh_schema);