svn commit: samba r21281 - in branches/SAMBA_4_0/source/dsdb/repl: .
metze at samba.org
metze at samba.org
Sun Feb 11 17:36:33 GMT 2007
Author: metze
Date: 2007-02-11 17:36:33 +0000 (Sun, 11 Feb 2007)
New Revision: 21281
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21281
Log:
move constinancy checks to the beginning of the function
metze
Modified:
branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c 2007-02-11 14:55:21 UTC (rev 21280)
+++ branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c 2007-02-11 17:36:33 UTC (rev 21281)
@@ -61,6 +61,14 @@
return WERR_FOOBAR;
}
+ if (in->object.attribute_ctr.num_attributes != 0 && !in->meta_data_ctr) {
+ return WERR_FOOBAR;
+ }
+
+ if (in->object.attribute_ctr.num_attributes != in->meta_data_ctr->count) {
+ return WERR_FOOBAR;
+ }
+
msg = ldb_msg_new(mem_ctx);
W_ERROR_HAVE_NO_MEMORY(msg);
@@ -87,14 +95,6 @@
W_ERROR_NOT_OK_RETURN(status);
}
- if (in->object.attribute_ctr.num_attributes != 0 && !in->meta_data_ctr) {
- return WERR_FOOBAR;
- }
-
- if (in->object.attribute_ctr.num_attributes != in->meta_data_ctr->count) {
- return WERR_FOOBAR;
- }
-
md = talloc(mem_ctx, struct replPropertyMetaDataBlob);
W_ERROR_HAVE_NO_MEMORY(md);
More information about the samba-cvs
mailing list