clear error string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20304 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user