(change): use the right password when changing the password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13284 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -220,7 +220,7 @@ change (krb5_auth_context auth_context,
|
|||||||
memset(&chpw, 0, sizeof(chpw));
|
memset(&chpw, 0, sizeof(chpw));
|
||||||
|
|
||||||
if (version == KRB5_KPASSWD_VERS_CHANGEPW) {
|
if (version == KRB5_KPASSWD_VERS_CHANGEPW) {
|
||||||
ret = krb5_copy_data(context, &chpw.newpasswd, &pwd_data);
|
ret = krb5_copy_data(context, in_data, &pwd_data);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
krb5_warn (context, ret, "krb5_copy_data");
|
krb5_warn (context, ret, "krb5_copy_data");
|
||||||
reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
|
reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
|
||||||
|
Reference in New Issue
Block a user