summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-21 11:34:24 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-21 13:35:56 +1000
commit2dcc84432ec264d6b322c281d0db1d731ce16b1b (patch)
tree49f81acf1bdef3ef3d9d8a0d6d7db06e11573245
parent024b53755c88855d7e88f256af03bd24280999f0 (diff)
downloadsamba-2dcc84432ec264d6b322c281d0db1d731ce16b1b.tar.gz
samba-2dcc84432ec264d6b322c281d0db1d731ce16b1b.tar.bz2
samba-2dcc84432ec264d6b322c281d0db1d731ce16b1b.zip
s4-schema: allow revision numbers of zero
w2k8r2 sends a revision of zero in the initial schema replication during a net vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/schema/schema_info_attr.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/dsdb/schema/schema_info_attr.c b/source4/dsdb/schema/schema_info_attr.c
index 165184739c..132c72a376 100644
--- a/source4/dsdb/schema/schema_info_attr.c
+++ b/source4/dsdb/schema/schema_info_attr.c
@@ -68,17 +68,14 @@ WERROR dsdb_schema_info_from_blob(const DATA_BLOB *blob,
return ntstatus_to_werror(nt_status);
}
- /* revision must be not less than 1 */
- if (schema_info_blob.revision < 1) {
- talloc_free(temp_ctx);
- return WERR_INVALID_PARAMETER;
- }
-
schema_info = talloc(mem_ctx, struct dsdb_schema_info);
if (!schema_info) {
talloc_free(temp_ctx);
return WERR_NOMEM;
}
+
+ /* note that we accept revision numbers of zero now - w2k8r2
+ sends a revision of zero on initial vampire */
schema_info->revision = schema_info_blob.revision;
schema_info->invocation_id = schema_info_blob.invocation_id;
*_schema_info = schema_info;