summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-22 17:26:44 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-25 07:39:38 +1000
commit27656e912340bc4fa58799da569b7673b2d0adca (patch)
tree142e6eb2579c876fd1578bbefc6f543e831cc37a /source4
parent9f404b3dea7bd34890eb66ff60432e05efdc2f09 (diff)
downloadsamba-27656e912340bc4fa58799da569b7673b2d0adca.tar.gz
samba-27656e912340bc4fa58799da569b7673b2d0adca.tar.bz2
samba-27656e912340bc4fa58799da569b7673b2d0adca.zip
s4-dsdb: fixed calls to ldb_val_string_cmp()
wrong order of arguments
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/schema/schema_syntax.c4
1 files changed, 2 insertions, 2 deletions
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;
}