diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-09 20:17:11 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-09 20:17:11 +0000 |
commit | 8158620124504a1ece1f1191cb8f273709039bd2 (patch) | |
tree | 883849bc6d1dd3f71e7deef4b494adb28cefde77 /source3/rpc_parse | |
parent | 4e004a0b5e7521a361444f6d67a3c2910c5688c2 (diff) | |
download | samba-8158620124504a1ece1f1191cb8f273709039bd2.tar.gz samba-8158620124504a1ece1f1191cb8f273709039bd2.tar.bz2 samba-8158620124504a1ece1f1191cb8f273709039bd2.zip |
dce/rpc.
(This used to be commit e0445419b2d50ae6efef36f4f295ebcfdbf1ad82)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_rpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c index 43cb204681..213d694509 100644 --- a/source3/rpc_parse/parse_rpc.c +++ b/source3/rpc_parse/parse_rpc.c @@ -532,8 +532,8 @@ void make_rpc_auth_ntlmssp_neg(RPC_AUTH_NTLMSSP_NEG *neg, neg->neg_flgs = neg_flgs ; /* 0x00b2b3 */ - make_str_hdr(&neg->hdr_myname, len_myname, len_myname, 0x20); - make_str_hdr(&neg->hdr_domain, len_domain, len_domain, 0x20 + len_myname+1); + make_str_hdr(&neg->hdr_myname, len_myname+1, len_myname+1, 0x20); + make_str_hdr(&neg->hdr_domain, len_domain+1, len_domain+1, 0x20 + len_myname+1); fstrcpy(neg->myname, myname); fstrcpy(neg->domain, domain); @@ -554,8 +554,8 @@ void smb_io_rpc_auth_ntlmssp_neg(char *desc, RPC_AUTH_NTLMSSP_NEG *neg, prs_stru smb_io_strhdr("hdr_myname", &(neg->hdr_myname), ps, depth); smb_io_strhdr("hdr_domain", &(neg->hdr_domain), ps, depth); - prs_string("domain", ps, depth, neg->domain, neg->hdr_domain.str_str_len, sizeof(neg->domain)); - prs_string("myname", ps, depth, neg->myname, neg->hdr_myname.str_str_len, sizeof(neg->myname)); + prs_string("domain", ps, depth, neg->domain, neg->hdr_domain.str_str_len-1, sizeof(neg->domain)); + prs_string("myname", ps, depth, neg->myname, neg->hdr_myname.str_str_len-1, sizeof(neg->myname)); } /******************************************************************* |