We can't use ndr_pull_struct_blob_all in combinatin with relative pointers
authorAndrew Bartlett <abartlet@samba.org>
Fri, 8 Aug 2008 00:32:21 +0000 (10:32 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 8 Aug 2008 00:32:21 +0000 (10:32 +1000)
(This used to be commit 931890e028da8da756b7c7c62e2552a9fc04f7bc)

source4/torture/rpc/dssync.c

index d340543f0a0a8e340d5dfabf00b662f89fe17ed4..0f2be55c384406781a128834b436666d39448d5c 100644 (file)
@@ -566,9 +566,10 @@ static void test_analyse_objects(struct torture_context *tctx,
                                }
 
                                if (pull_fn) {
-                                       ndr_err = ndr_pull_struct_blob_all(&plain_data, ptr,
-                                                                          lp_iconv_convenience(tctx->lp_ctx), ptr,
-                                                                          pull_fn);
+                                       /* Can't use '_all' because of PIDL bugs with relative pointers */
+                                       ndr_err = ndr_pull_struct_blob(&plain_data, ptr,
+                                                                      lp_iconv_convenience(tctx->lp_ctx), ptr,
+                                                                      pull_fn);
                                        if (NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                                                ndr_print_debug(print_fn, name, ptr);
                                        } else {