diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-11-04 18:13:33 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-11-04 18:13:33 +0000 |
commit | c3f21fc360b220b4547c43c03ac60f20ecb30654 (patch) | |
tree | 331e9ec14c8b89932dc3c51d1d056ec21f7e1ecc /source3/rpc_parse | |
parent | a896bbcb5a5be2cfb248d9e3ad01633c36a3e423 (diff) | |
download | samba-c3f21fc360b220b4547c43c03ac60f20ecb30654.tar.gz samba-c3f21fc360b220b4547c43c03ac60f20ecb30654.tar.bz2 samba-c3f21fc360b220b4547c43c03ac60f20ecb30654.zip |
get the string lengths right in domain logons
Andrew, this fixes domain logons in head. Please look at the change,
as I think you may have misunderstood the max_str_len field (which is
badly named)
(This used to be commit fd3a657b440a61c0c146947bb62d2b83c1689b87)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c index 1b0e498f77..3e7be9d4cf 100644 --- a/source3/rpc_parse/parse_net.c +++ b/source3/rpc_parse/parse_net.c @@ -1012,8 +1012,8 @@ void init_id_info2(NET_ID_INFO_2 * id, const char *domain_name, } memcpy(id->lm_chal, lm_challenge, sizeof(id->lm_chal)); - init_str_hdr(&id->hdr_nt_chal_resp, sizeof(nt_owf), nt_chal_resp_len, (nt_chal_resp != NULL) ? 1 : 0); - init_str_hdr(&id->hdr_lm_chal_resp, sizeof(lm_owf), lm_chal_resp_len, (lm_chal_resp != NULL) ? 1 : 0); + init_str_hdr(&id->hdr_nt_chal_resp, nt_chal_resp_len, nt_chal_resp_len, (nt_chal_resp != NULL) ? 1 : 0); + init_str_hdr(&id->hdr_lm_chal_resp, lm_chal_resp_len, lm_chal_resp_len, (lm_chal_resp != NULL) ? 1 : 0); init_unistr2(&id->uni_domain_name, domain_name, len_domain_name); init_unistr2(&id->uni_user_name, user_name, len_user_name); |