make_uni_hdr() reverted accidentally with a -1 on username length
authorLuke Leighton <lkcl@samba.org>
Tue, 17 Nov 1998 18:01:43 +0000 (18:01 +0000)
committerLuke Leighton <lkcl@samba.org>
Tue, 17 Nov 1998 18:01:43 +0000 (18:01 +0000)
(This used to be commit 7da1b0bb511e6c5e44ab83759914134cf91f6f78)

source3/rpc_server/srv_samr.c

index b70a71b5c0721498c1b00988f89cbd55b9f7970b..68c51a860ab616c1d28062cea78bec13fa7cdba3 100644 (file)
@@ -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);