(krb5_kt_get_entry): clear error string when returning a new error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15560 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -302,8 +302,10 @@ krb5_kt_get_entry(krb5_context context,
|
|||||||
return (*id->get)(context, id, principal, kvno, enctype, entry);
|
return (*id->get)(context, id, principal, kvno, enctype, entry);
|
||||||
|
|
||||||
ret = krb5_kt_start_seq_get (context, id, &cursor);
|
ret = krb5_kt_start_seq_get (context, id, &cursor);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
krb5_clear_error_string(context);
|
||||||
return KRB5_KT_NOTFOUND; /* XXX i.e. file not found */
|
return KRB5_KT_NOTFOUND; /* XXX i.e. file not found */
|
||||||
|
}
|
||||||
|
|
||||||
entry->vno = 0;
|
entry->vno = 0;
|
||||||
while (krb5_kt_next_entry(context, id, &tmp, &cursor) == 0) {
|
while (krb5_kt_next_entry(context, id, &tmp, &cursor) == 0) {
|
||||||
|
Reference in New Issue
Block a user