diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-17 18:01:43 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-17 18:01:43 +0000 |
commit | 5ae9b412351804929eda2ed9070c21d5a9bcf024 (patch) | |
tree | f2e3bca8121b8e7b733adc39a69a69fbebf253a4 | |
parent | 0c7aa2e61a194f08e099df50ac26de893e4fbee9 (diff) | |
download | samba-5ae9b412351804929eda2ed9070c21d5a9bcf024.tar.gz samba-5ae9b412351804929eda2ed9070c21d5a9bcf024.tar.bz2 samba-5ae9b412351804929eda2ed9070c21d5a9bcf024.zip |
make_uni_hdr() reverted accidentally with a -1 on username length
(This used to be commit 7da1b0bb511e6c5e44ab83759914134cf91f6f78)
-rw-r--r-- | source3/rpc_server/srv_samr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index b70a71b5c0..68c51a860a 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -81,8 +81,8 @@ static BOOL get_sampwd_entries(SAM_USER_INFO_21 *pw_buf, user_name_len = strlen(pwd->smb_name); make_unistr2(&(pw_buf[(*num_entries)].uni_user_name), pwd->smb_name, user_name_len); - make_uni_hdr(&(pw_buf[(*num_entries)].hdr_user_name), user_name_len-1, - user_name_len-1, 1); + make_uni_hdr(&(pw_buf[(*num_entries)].hdr_user_name), user_name_len, + user_name_len, 1); pw_buf[(*num_entries)].user_rid = pwd->user_rid; bzero( pw_buf[(*num_entries)].nt_pwd , 16); |