diff options
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r-- | source4/librpc/ndr/libndr.h | 4 | ||||
-rw-r--r-- | source4/librpc/ndr/ndr.c | 13 |
2 files changed, 2 insertions, 15 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h index 892f3c27ca..e5d8b0e593 100644 --- a/source4/librpc/ndr/libndr.h +++ b/source4/librpc/ndr/libndr.h @@ -126,10 +126,6 @@ struct ndr_print { /* used to check if alignment padding is zero */ #define LIBNDR_FLAG_PAD_CHECK (1<<28) -/* used to indicate spoolss style relative pointers (relative to current - offset, not base) */ -#define LIBNDR_FLAG_RELATIVE_CURRENT (1<<29) - /* set if an object uuid will be present */ #define LIBNDR_FLAG_OBJECT_PRESENT (1<<30) diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index dfd21018d2..237b64d4eb 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -598,12 +598,7 @@ uint32_t ndr_print_get_switch_value(struct ndr_print *ndr, const void *p) */ NTSTATUS ndr_pull_relative_ptr1(struct ndr_pull *ndr, const void *p, uint32_t rel_offset) { - if (ndr->flags & LIBNDR_FLAG_RELATIVE_CURRENT) { - return ndr_token_store(ndr, &ndr->relative_list, p, - rel_offset + ndr->offset - 4); - } else { - return ndr_token_store(ndr, &ndr->relative_list, p, rel_offset); - } + return ndr_token_store(ndr, &ndr->relative_list, p, rel_offset); } /* @@ -645,11 +640,7 @@ NTSTATUS ndr_push_relative_ptr2(struct ndr_push *ndr, const void *p) NDR_CHECK(ndr_push_align(ndr, 4)); ndr_push_save(ndr, &save); NDR_CHECK(ndr_token_retrieve(&ndr->relative_list, p, &ndr->offset)); - if (ndr->flags & LIBNDR_FLAG_RELATIVE_CURRENT) { - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, save.offset - ndr->offset)); - } else { - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, save.offset)); - } + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, save.offset)); ndr_push_restore(ndr, &save); return NT_STATUS_OK; } |