(krb5_cc_retrieve_cred): check return value from krb5_cc_start_seq_get. From Zeqing (Fred) Xia

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21979 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-10-18 20:12:35 +00:00
parent 38251964e0
commit 2f2da40a0f

View File

@@ -526,7 +526,9 @@ krb5_cc_retrieve_cred(krb5_context context,
mcreds, creds);
}
krb5_cc_start_seq_get(context, id, &cursor);
ret = krb5_cc_start_seq_get(context, id, &cursor);
if (ret)
return ret;
while((ret = krb5_cc_next_cred(context, id, &cursor, creds)) == 0){
if(krb5_compare_creds(context, whichfields, mcreds, creds)){
ret = 0;