diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-08-09 16:36:50 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-08-14 11:58:12 +1000 |
commit | 7bb5d353e84fa2998ae03fb7ecff1c59685dd9b7 (patch) | |
tree | 3be8f93775a9edd4925c603e76f20027bbe6c393 /librpc | |
parent | 60eae5a1342cb0e4463d380aa2db837684e111c7 (diff) | |
download | samba-7bb5d353e84fa2998ae03fb7ecff1c59685dd9b7.tar.gz samba-7bb5d353e84fa2998ae03fb7ecff1c59685dd9b7.tar.bz2 samba-7bb5d353e84fa2998ae03fb7ecff1c59685dd9b7.zip |
dnsp: dnsp_name is 2 byte aligned
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/ndr_dnsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_dnsp.c b/librpc/ndr/ndr_dnsp.c index f24b5dbf79..f777591f25 100644 --- a/librpc/ndr/ndr_dnsp.c +++ b/librpc/ndr/ndr_dnsp.c @@ -69,6 +69,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_name(struct ndr_pull *ndr, int ndr_flag total_len = newlen; } (*name) = ret; + NDR_PULL_ALIGN(ndr, 2); return NDR_ERR_SUCCESS; } @@ -93,6 +94,7 @@ enum ndr_err_code ndr_push_dnsp_name(struct ndr_push *ndr, int ndr_flags, const NDR_CHECK(ndr_push_bytes(ndr, (const uint8_t *)name, sublen)); name += sublen + 1; } + NDR_PUSH_ALIGN(ndr, 2); return NDR_ERR_SUCCESS; } |