s4-dsdb: fixed calls to ldb_val_string_cmp()
authorAndrew Tridgell <tridge@samba.org>
Mon, 22 Aug 2011 07:26:44 +0000 (17:26 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 24 Aug 2011 21:39:38 +0000 (07:39 +1000)
wrong order of arguments

source4/dsdb/schema/schema_syntax.c

index e875bee9240bafa796ed0bb21f012ca493d8e481..e909632920a2ae48bc5497212259ca8de7d2c6f5 100644 (file)
@@ -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;
                }