summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-05 06:17:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:13 -0500
commit53067ce37fc6056961768411062414e9074da2ab (patch)
treea41954367d2e446bcbb13d1c2208ddf9b8d25d4b /source4/librpc/ndr
parenta33178fc72cce0ec439ada961829100a07e33e10 (diff)
downloadsamba-53067ce37fc6056961768411062414e9074da2ab.tar.gz
samba-53067ce37fc6056961768411062414e9074da2ab.tar.bz2
samba-53067ce37fc6056961768411062414e9074da2ab.zip
r8157: 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 (This used to be commit ccc9d9267a60287eff1fb26132aa7cae3b39dcee)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_basic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index a33378dd1b..0a268ac6c9 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -563,8 +563,14 @@ NTSTATUS ndr_push_unique_ptr(struct ndr_push *ndr, const void *p)
{
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);
}