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:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user