mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
dnsp: dnsp_name is 2 byte aligned
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
60eae5a134
commit
7bb5d353e8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user