1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-06 17:32:29 +03:00

pidl: added union padding for NDR64

This fixes the problem with samr UserInfo16 when NDR64 is enabled
This commit is contained in:
Andrew Tridgell
2009-09-29 17:47:54 +10:00
parent 325baf37ff
commit 64e08fef16
4 changed files with 37 additions and 2 deletions

View File

@ -555,6 +555,24 @@ _PUBLIC_ enum ndr_err_code ndr_pull_align(struct ndr_pull *ndr, size_t size)
return NDR_ERR_SUCCESS;
}
_PUBLIC_ enum ndr_err_code ndr_push_union_align(struct ndr_push *ndr, size_t size)
{
/* MS-RPCE section 2.2.5.3.4.4 */
if (ndr->flags & LIBNDR_FLAG_NDR64) {
return ndr_push_align(ndr, size);
}
return NDR_ERR_SUCCESS;
}
_PUBLIC_ enum ndr_err_code ndr_pull_union_align(struct ndr_pull *ndr, size_t size)
{
/* MS-RPCE section 2.2.5.3.4.4 */
if (ndr->flags & LIBNDR_FLAG_NDR64) {
return ndr_pull_align(ndr, size);
}
return NDR_ERR_SUCCESS;
}
/*
push some bytes
*/