summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-04-23 16:35:21 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-04-29 04:54:07 +0300
commit59830d0a6effa6509eae384f08cf3df32cd53359 (patch)
tree35941731960cdab341dfbf77035311d242daaa80 /source4/dsdb
parenta8438015cae6d426bf140feffec46e129688ec8e (diff)
downloadsamba-59830d0a6effa6509eae384f08cf3df32cd53359.tar.gz
samba-59830d0a6effa6509eae384f08cf3df32cd53359.tar.bz2
samba-59830d0a6effa6509eae384f08cf3df32cd53359.zip
s4/dsdb: schemaInfo revision may be 0
In case schemaInfo value is still not set, WinAD supplies schemaInfo blob with revision = 0 and GUID_ZERO
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_info_attr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/dsdb/schema/schema_info_attr.c b/source4/dsdb/schema/schema_info_attr.c
index ac5bdc2fa9..ac22eb9b3f 100644
--- a/source4/dsdb/schema/schema_info_attr.c
+++ b/source4/dsdb/schema/schema_info_attr.c
@@ -135,10 +135,6 @@ WERROR dsdb_blob_from_schema_info(const struct dsdb_schema_info *schema_info,
enum ndr_err_code ndr_err;
struct schemaInfoBlob schema_info_blob;
- if (schema_info->revision < 1) {
- return WERR_INVALID_PARAMETER;
- }
-
schema_info_blob.marker = 0xFF;
schema_info_blob.revision = schema_info->revision;
schema_info_blob.invocation_id = schema_info->invocation_id;
@@ -209,7 +205,7 @@ WERROR dsdb_module_schema_info_blob_read(struct ldb_module *ldb_module,
}
/**
- * Pepares ldb_msg to be used for updating schemaInfo value in DB
+ * Prepares ldb_msg to be used for updating schemaInfo value in DB
*/
static WERROR _dsdb_schema_info_write_prepare(struct ldb_context *ldb,
DATA_BLOB *schema_info_blob,