From 2dcc84432ec264d6b322c281d0db1d731ce16b1b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Apr 2010 11:34:24 +1000 Subject: [PATCH] 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 --- source4/dsdb/schema/schema_info_attr.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source4/dsdb/schema/schema_info_attr.c b/source4/dsdb/schema/schema_info_attr.c index 165184739cb..132c72a3766 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; -- 2.11.4.GIT