return value of krb5_change_password

snacktime snacktime at gmail.com
Mon Sep 18 23:55:38 EDT 2006


In the following code, the password is changed, krbret has a value of
-1765328346, and pw_result has a value of 0.  Shouldn't the return
value and result code both be 0?  Should I just discard the function
return value?

if ((krbret = krb5_change_password(ctx, &creds, newpass, &pw_result,
&pw_res_string, &res_string ))) {
    krb5_free_cred_contents(ctx, &creds);
    krb5_free_principal(ctx, princ);
    krb5_free_context(ctx);
    return krbret;
  }



More information about the Kerberos mailing list