r2234: Tridge, this is a patch to allow people to set the REF_ALLOC flag on
authorTim Potter <tpot@samba.org>
Mon, 6 Sep 2004 10:29:18 +0000 (10:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:33 +0000 (12:58 -0500)
a dcerpc_pipe structure as we discussed this morning.
(This used to be commit 79969dc8daf5fdaacd26135a200ecec0b4d7663c)

source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc.h

index 55acf4625c850f2fcdcbeda2fce8a44c50674017..715a680fde8676f17908f513852fb8d5bef1ccab 100644 (file)
@@ -116,6 +116,10 @@ static struct ndr_pull *ndr_pull_init_flags(struct dcerpc_pipe *p, DATA_BLOB *bl
                ndr->flags |= LIBNDR_FLAG_PAD_CHECK;
        }
 
+       if (p->flags & DCERPC_NDR_REF_ALLOC) {
+               ndr->flags |= LIBNDR_FLAG_REF_ALLOC;
+       }
+
        return ndr;
 }
 
index 0ec1abf55d739bf2520fec1cd0326dfd77a7dffb..9083bfb7951778a94d457c81d5fd06609c991db4 100644 (file)
@@ -104,6 +104,9 @@ struct dcerpc_pipe {
 /* check incoming pad bytes */
 #define DCERPC_DEBUG_PAD_CHECK         (1<<12)
 
+/* set LIBNDR_FLAG_REF_ALLOC flag when decoding NDR */
+#define DCERPC_NDR_REF_ALLOC           (1<<13)
+
 /*
   this is used to find pointers to calls
 */