(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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand