From 27656e912340bc4fa58799da569b7673b2d0adca Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Aug 2011 17:26:44 +1000 Subject: s4-dsdb: fixed calls to ldb_val_string_cmp() wrong order of arguments --- source4/dsdb/schema/schema_syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index e875bee924..e909632920 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -615,7 +615,7 @@ static WERROR dsdb_syntax_NTTIME_UTC_ldb_to_drsuapi(const struct dsdb_syntax_ctx blobs[i] = data_blob_talloc(blobs, NULL, 8); W_ERROR_HAVE_NO_MEMORY(blobs[i].data); - if (ldb_val_string_cmp("16010101000000.0Z", &in->values[i]) == 0) { + if (ldb_val_string_cmp(&in->values[i], "16010101000000.0Z") == 0) { SBVALS(blobs[i].data, 0, 0); continue; } @@ -757,7 +757,7 @@ static WERROR dsdb_syntax_NTTIME_ldb_to_drsuapi(const struct dsdb_syntax_ctx *ct blobs[i] = data_blob_talloc(blobs, NULL, 8); W_ERROR_HAVE_NO_MEMORY(blobs[i].data); - if (ldb_val_string_cmp("16010101000000.0Z", &in->values[i]) == 0) { + if (ldb_val_string_cmp(&in->values[i], "16010101000000.0Z") == 0) { SBVALS(blobs[i].data, 0, 0); continue; } -- cgit