r7327: pass down the ndr->flags to the subcontexts
authorStefan Metzmacher <metze@samba.org>
Mon, 6 Jun 2005 09:52:07 +0000 (09:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:42 +0000 (13:17 -0500)
metze
(This used to be commit c0462d60b58471b0804450d31a11e603519b45e4)

source4/librpc/ndr/ndr_spoolss_buf.c

index 332a5632442664ce35e672a72e8e5256eb110eca..26113cca38858ec42491d4e9ca6ba9b80acf5ba9 100644 (file)
@@ -46,6 +46,7 @@
                DATA_BLOB _data_blob_info;\
                _ndr_info = ndr_push_init_ctx(ndr);\
                if (!_ndr_info) return NT_STATUS_NO_MEMORY;\
+               _ndr_info->flags= ndr->flags;\
                __r.in.level    = r->in.level;\
                __r.in.count    = r->out.count;\
                __r.out.info    = r->out.info;\
@@ -91,6 +92,7 @@
                struct __##fn __r;\
                _ndr_info = ndr_pull_init_blob(_r.out.buffer, ndr);\
                if (!_ndr_info) return NT_STATUS_NO_MEMORY;\
+               _ndr_info->flags= ndr->flags;\
                __r.in.level    = r->in.level;\
                __r.in.count    = r->out.count;\
                __r.out.info    = NULL;\
                                 return 0; \
                         } while (0)
 
+/* TODO: set _ndr_info->flags correct */
 #define NDR_SPOOLSS_SIZE_ENUM(fn) do { \
        struct __##fn __r;\
        DATA_BLOB _data_blob_info;\
        struct ndr_push *_ndr_info = ndr_push_init_ctx(mem_ctx);\
        if (!_ndr_info) return 0;\
+       _ndr_info->flags|=0;\
        __r.in.level    = level;\
        __r.in.count    = count;\
        __r.out.info    = info;\