mirror of
https://github.com/samba-team/samba.git
synced 2025-03-25 14:50:24 +03:00
make_unihdr() was setting the length to 1/2 the required value.
(This used to be commit 4c99a083b9555b1ccf16faf0d4c1fba8f52bbb6a)
This commit is contained in:
parent
9e4626593f
commit
545d6e5a30
@ -173,8 +173,8 @@ int make_rpc_reply(char *inbuf, char *q, int data_len)
|
||||
|
||||
void make_uni_hdr(UNIHDR *hdr, int max_len, int len, uint16 terminate)
|
||||
{
|
||||
hdr->uni_max_len = max_len;
|
||||
hdr->uni_str_len = len;
|
||||
hdr->uni_max_len = 2 * max_len;
|
||||
hdr->uni_str_len = 2 * len;
|
||||
hdr->undoc = terminate;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user