clear error string.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20304 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-04-11 11:15:05 +00:00
parent aa3ae69d42
commit 1dda5d8b5f
2 changed files with 6 additions and 2 deletions

View File

@@ -79,8 +79,10 @@ krb5_rd_cred(krb5_context context,
ret = decode_KRB_CRED(in_data->data, in_data->length, ret = decode_KRB_CRED(in_data->data, in_data->length,
&cred, &len); &cred, &len);
if(ret) if(ret) {
krb5_clear_error_string(context);
return ret; return ret;
}
if (cred.pvno != 5) { if (cred.pvno != 5) {
ret = KRB5KRB_AP_ERR_BADVERSION; ret = KRB5KRB_AP_ERR_BADVERSION;

View File

@@ -45,8 +45,10 @@ krb5_rd_error(krb5_context context,
krb5_error_code ret; krb5_error_code ret;
ret = decode_KRB_ERROR(msg->data, msg->length, result, &len); ret = decode_KRB_ERROR(msg->data, msg->length, result, &len);
if(ret) if(ret) {
krb5_clear_error_string(context);
return ret; return ret;
}
result->error_code += KRB5KDC_ERR_NONE; result->error_code += KRB5KDC_ERR_NONE;
return 0; return 0;
} }