svn commit: samba r2234 - in branches/SAMBA_4_0/source/librpc/rpc: .

tpot at samba.org tpot at samba.org
Mon Sep 6 10:29:19 GMT 2004


Author: tpot
Date: 2004-09-06 10:29:18 +0000 (Mon, 06 Sep 2004)
New Revision: 2234

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/librpc/rpc&rev=2234&nolog=1

Log:
Tridge, this is a patch to allow people to set the REF_ALLOC flag on
a dcerpc_pipe structure as we discussed this morning.

Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c	2004-09-06 10:22:03 UTC (rev 2233)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c	2004-09-06 10:29:18 UTC (rev 2234)
@@ -116,6 +116,10 @@
 		ndr->flags |= LIBNDR_FLAG_PAD_CHECK;
 	}
 
+	if (p->flags & DCERPC_NDR_REF_ALLOC) {
+		ndr->flags |= LIBNDR_FLAG_REF_ALLOC;
+	}
+
 	return ndr;
 }
 

Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h	2004-09-06 10:22:03 UTC (rev 2233)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h	2004-09-06 10:29:18 UTC (rev 2234)
@@ -104,6 +104,9 @@
 /* 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
 */



More information about the samba-cvs mailing list