summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-09 00:58:40 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-09 00:58:40 +0000
commitcff32d6b0ae3b8f17973f544d8be891704437915 (patch)
treee1bf089b426305deb478750336cef08906c9bf93 /source4/librpc/ndr/ndr_basic.c
parent2430e941d748beebd1297c83d176982e7ff89be7 (diff)
downloadsamba-cff32d6b0ae3b8f17973f544d8be891704437915.tar.gz
samba-cff32d6b0ae3b8f17973f544d8be891704437915.tar.bz2
samba-cff32d6b0ae3b8f17973f544d8be891704437915.zip
added idl, generated code and test code for lsa_LookupSids
(This used to be commit afa1ff5f08fceba3d34b4e0965fe7e0c0143ede9)
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r--source4/librpc/ndr/ndr_basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 21bd36963c..3e6d0b30e6 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -257,7 +257,7 @@ NTSTATUS ndr_pull_unistr(struct ndr_pull *ndr, const char **s)
return NT_STATUS_INVALID_PARAMETER;
}
NDR_ALLOC_N(ndr, ws, (len1+1)*2);
- NDR_CHECK(ndr_pull_bytes(ndr, ws, len1*2));
+ NDR_CHECK(ndr_pull_bytes(ndr, ws, len2*2));
SSVAL(ws, len1*2, 0);
SSVAL(ws, len2*2, 0);
pull_ucs2_talloc(ndr->mem_ctx, &as, (const smb_ucs2_t *)ws);