(krb5_get_kdc_cred): interpret the error number in KRB-ERROR

correctly.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2589 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-24 07:20:02 +00:00
parent 827b9cd9e0
commit 6a435e77ea

View File

@@ -190,7 +190,7 @@ krb5_get_kdc_cred(krb5_context context,
krb5_get_err_text(context, error.error_code)); krb5_get_err_text(context, error.error_code));
fprintf(stderr, " (code %d)\n", error.error_code); fprintf(stderr, " (code %d)\n", error.error_code);
#endif #endif
ret = error.error_code; ret = error.error_code + KRB5KDC_ERR_NONE;
free_KRB_ERROR(&error); free_KRB_ERROR(&error);
}else }else
ret = KRB5KRB_AP_ERR_MSG_TYPE; ret = KRB5KRB_AP_ERR_MSG_TYPE;