]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-torture: let torture_suite_add_ndr_pull_test always work with NDR_SCALARS|NDR_BUFF...
authorGünther Deschner <gd@samba.org>
Tue, 28 Aug 2012 12:30:13 +0000 (14:30 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 29 Aug 2012 07:19:05 +0000 (09:19 +0200)
I checked all the callers (one) that needs them.

Guenther

See bug #9026 - 3.6.6 upgrade from 3.5.x fails with "Couldn't migrate printers
tdb file: NT_STATUS_NO_MEMORY" for details.

source4/torture/ndr/ndr.h

index 3de6b8b0d348b2a028541c302cdf7eb2fb72c32d..b2485275725a4dadf80292608df513f61180cbc1 100644 (file)
@@ -43,7 +43,7 @@ _PUBLIC_ struct torture_test *_torture_suite_add_ndr_pull_inout_test(
 #define torture_suite_add_ndr_pull_test(suite,name,data,check_fn) \
                _torture_suite_add_ndr_pull_test(suite, #name, \
                         (ndr_pull_flags_fn_t)ndr_pull_ ## name, data_blob_talloc(suite, data, sizeof(data)), \
-                        sizeof(struct name), 0, (bool (*) (struct torture_context *, void *)) check_fn);
+                        sizeof(struct name), NDR_SCALARS|NDR_BUFFERS, (bool (*) (struct torture_context *, void *)) check_fn);
 
 #define torture_suite_add_ndr_pull_fn_test(suite,name,data,flags,check_fn) \
                _torture_suite_add_ndr_pull_test(suite, #name "_" #flags, \