sq
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Jul 2013 07:59:29 +0000 (09:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 29 Jun 2014 21:45:24 +0000 (23:45 +0200)
source4/dsdb/repl/replicated_objects.c

index 4614857780c9473c4decc41c38723780e5414181..78b3d75ae8d11595e1a0678033b3b4987521f5bf 100644 (file)
@@ -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);