diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-01-26 22:22:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:31 -0500 |
commit | 662a58bded5b1766dc40d099b7279936ae027e76 (patch) | |
tree | 7dc47a47520a78a60f179f64cec685d7b984a977 /source4/auth | |
parent | af772ebe88d74f5fcbc3f9f7e69078332cd33700 (diff) | |
download | samba-662a58bded5b1766dc40d099b7279936ae027e76.tar.gz samba-662a58bded5b1766dc40d099b7279936ae027e76.tar.bz2 samba-662a58bded5b1766dc40d099b7279936ae027e76.zip |
r13170: Remove some dependencies on -1 implying the size of pstring
(This used to be commit f7c28d31481f6479f258cd878d173cbc42ed9de0)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/ntlmssp/ntlmssp_parse.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/auth/ntlmssp/ntlmssp_parse.c b/source4/auth/ntlmssp/ntlmssp_parse.c index e8c08bf650..4fbfede350 100644 --- a/source4/auth/ntlmssp/ntlmssp_parse.c +++ b/source4/auth/ntlmssp/ntlmssp_parse.c @@ -238,9 +238,8 @@ BOOL msrpc_parse(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, return False; if (0 < len1) { - pull_string(p, blob->data + ptr, sizeof(p), - len1, - STR_UNICODE|STR_NOALIGN); + pull_ucs2(p, blob->data + ptr, sizeof(p), + len1, STR_NOALIGN); (*ps) = talloc_strdup(mem_ctx, p); if (!(*ps)) { return False; @@ -269,9 +268,8 @@ BOOL msrpc_parse(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, return False; if (0 < len1) { - pull_string(p, blob->data + ptr, sizeof(p), - len1, - STR_ASCII|STR_NOALIGN); + pull_ascii(p, blob->data + ptr, sizeof(p), + len1, STR_NOALIGN); (*ps) = talloc_strdup(mem_ctx, p); if (!(*ps)) { return False; |