diff options
author | Günther Deschner <gd@samba.org> | 2008-11-24 18:49:37 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-28 13:55:38 +0100 |
commit | 4d7485df96b45054aa8f4fcac38b25847f34ca87 (patch) | |
tree | d52269c7e1d43ec379bef3ac3d4d025b00f3e449 /source3/rpc_client | |
parent | 408cd5b09d5079d73f0ea8819a4505a04e40f8ea (diff) | |
download | samba-4d7485df96b45054aa8f4fcac38b25847f34ca87.tar.gz samba-4d7485df96b45054aa8f4fcac38b25847f34ca87.tar.bz2 samba-4d7485df96b45054aa8f4fcac38b25847f34ca87.zip |
s3-samr: fix init_samr_user_info{23,24} callers.
Guenther
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/init_samr.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/rpc_client/init_samr.c b/source3/rpc_client/init_samr.c index 43809c03d1..19dd0b3c09 100644 --- a/source3/rpc_client/init_samr.c +++ b/source3/rpc_client/init_samr.c @@ -457,8 +457,7 @@ void init_samr_user_info23(struct samr_UserInfo23 *r, uint8_t nt_password_set, uint8_t lm_password_set, uint8_t password_expired, - uint8_t data[516], - uint8_t pw_len) + struct samr_CryptPassword *pwd_buf) { memset(r, '\0', sizeof(*r)); init_samr_user_info21(&r->info, @@ -491,7 +490,7 @@ void init_samr_user_info23(struct samr_UserInfo23 *r, lm_password_set, password_expired); - memcpy(r->password.data, data, sizeof(r->password.data)); + r->password = *pwd_buf; } /************************************************************************* @@ -499,13 +498,13 @@ void init_samr_user_info23(struct samr_UserInfo23 *r, *************************************************************************/ void init_samr_user_info24(struct samr_UserInfo24 *r, - uint8_t data[516], - uint8_t pw_len) + struct samr_CryptPassword *pwd_buf, + uint8_t password_expired) { DEBUG(10, ("init_samr_user_info24:\n")); - memcpy(r->password.data, data, sizeof(r->password.data)); - r->pw_len = pw_len; + r->password = *pwd_buf; + r->password_expired = password_expired; } /************************************************************************* |