svn commit: samba r8157 - in branches/SAMBA_4_0/source/librpc/ndr: .

metze at samba.org metze at samba.org
Tue Jul 5 06:17:48 GMT 2005


Author: metze
Date: 2005-07-05 06:17:47 +0000 (Tue, 05 Jul 2005)
New Revision: 8157

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8157

Log:
add the algorithm for unique pointers that w2k3 uses.

this is ifdef'ed out currently because we use 'unique' pointers in the epmapper pipe,
where we should use 'ptr' full pointers.

metze
Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c	2005-07-05 06:13:12 UTC (rev 8156)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c	2005-07-05 06:17:47 UTC (rev 8157)
@@ -563,8 +563,14 @@
 {
 	uint32_t ptr = 0;
 	if (p) {
+#if 0
+		ptr = ndr->ptr_count * 4;
+		ptr |= 0x00020000;
 		ndr->ptr_count++;
+#else
+		ndr->ptr_count++;
 		ptr = ndr->ptr_count;
+#endif
 	}
 	return ndr_push_uint32(ndr, NDR_SCALARS, ptr);
 }



More information about the samba-cvs mailing list