From 98b9b828f12090e0488202f67b1f144b7321c2d5 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 30 Nov 2009 01:19:14 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/copy_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2