]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Convert success in krb5_chpw_result_code_string
authorJonathan Reams <jreams@columbia.edu>
Fri, 15 Feb 2013 07:11:57 +0000 (02:11 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 22 Feb 2013 22:10:54 +0000 (17:10 -0500)
Result code 0 used to be converted properly by krb5_set_password,
though not krb5_change_password; this changed in 1.10 when
krb5int_setpw_result_code_string was folded into
krb5_chpw_result_code_string.  Restore the old behavior, and make it
apply to krb5_change_password as well, by making
krb5_chpw_result_code_string convert result code 0.

[ghudson@mit.edu: commit message]

(cherry picked from commit 316bf74b4696058e2b60c95c9d0fc90d6c2c2ffe)

ticket: 7576 (new)
version_fixed: 1.10.4
status: resolved

src/lib/krb5/krb/chpw.c

index 7e43dcf1a1f0ef505affacf40c59a9da63e78dca..2ea23054c3ff2a356eaaea670ddb947088183f7c 100644 (file)
@@ -268,6 +268,9 @@ krb5_chpw_result_code_string(krb5_context context, int result_code,
     case KRB5_KPASSWD_INITIAL_FLAG_NEEDED:
         *code_string = _("Initial password required");
         break;
+    case 0:
+        *code_string = _("Success");
+        break;
     default:
         *code_string = _("Password change failed");
         break;