From: Greg Hudson Date: Mon, 30 Nov 2009 01:19:14 +0000 (+0000) Subject: Terminate the loop in find_authdata_1 if we get an error in one of the X-Git-Tag: krb5-1.8-alpha1~126 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98b9b828f12090e0488202f67b1f144b7321c2d5;p=krb5.git Terminate the loop in find_authdata_1 if we get an error in one of the iterations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23382 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/copy_auth.c b/src/lib/krb5/krb/copy_auth.c index d4c270078..88bc3faf9 100644 --- a/src/lib/krb5/krb/copy_auth.c +++ b/src/lib/krb5/krb/copy_auth.c @@ -229,7 +229,7 @@ find_authdata_1(krb5_context context, krb5_authdata *const *in_authdat, int i = 0; krb5_error_code retval = 0; - for (i = 0; in_authdat[i]; i++) { + for (i = 0; in_authdat[i] && retval == 0; i++) { krb5_authdata *ad = in_authdat[i]; krb5_authdata **decoded_container;