diff options
author | nectar <nectar@FreeBSD.org> | 2002-09-30 11:48:23 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-09-30 11:48:23 +0000 |
commit | 93b309dcff8cc5571ed72d5aefc4bac4f6ee0035 (patch) | |
tree | b0b704b116639cc2f2c17dbae7b20ee8ada79375 /crypto/heimdal | |
parent | 8707f886593c300d83c76654e92ec76bcea9b858 (diff) | |
download | FreeBSD-src-93b309dcff8cc5571ed72d5aefc4bac4f6ee0035.zip FreeBSD-src-93b309dcff8cc5571ed72d5aefc4bac4f6ee0035.tar.gz |
Fix an annoying bug that causes a spurious error message when changing
passwords, even when the operation actually succeeded.
% k5passwd
luser@REA.LM's Password: **************
New password: **************
Verifying password - New password: **************
k5passwd: krb5_change_password: unable to reach any changepw server in realm REA.LM
[In reality, the password was changed.]
Obtained from: Heimdal CVS
Diffstat (limited to 'crypto/heimdal')
-rw-r--r-- | crypto/heimdal/lib/krb5/changepw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/heimdal/lib/krb5/changepw.c b/crypto/heimdal/lib/krb5/changepw.c index f765a97..a17bf2b 100644 --- a/crypto/heimdal/lib/krb5/changepw.c +++ b/crypto/heimdal/lib/krb5/changepw.c @@ -33,7 +33,7 @@ #include <krb5_locl.h> -RCSID("$Id: changepw.c,v 1.37 2002/09/03 16:14:34 nectar Exp $"); +RCSID("$Id: changepw.c,v 1.38 2002/09/29 11:48:34 joda Exp $"); static krb5_error_code send_request (krb5_context context, @@ -175,7 +175,7 @@ process_reply (krb5_context context, ap_rep_data.length = (reply[4] << 8) | (reply[5]); priv_data.data = (u_char*)ap_rep_data.data + ap_rep_data.length; priv_data.length = len - ap_rep_data.length - 6; - if ((u_char *)priv_data.data + priv_data.length >= reply + len) + if ((u_char *)priv_data.data + priv_data.length > reply + len) return KRB5_KPASSWD_MALFORMED; if (ap_rep_data.length) { |