From: Theodore Tso Date: Wed, 1 Dec 1993 22:21:52 +0000 (+0000) Subject: Fixed typo in copy_addrs; a set of curly braces was missing X-Git-Tag: krb5-1.0-beta3~121 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd310bc579a355f4fb0cef9a632cd213e391d0c6;p=krb5.git Fixed typo in copy_addrs; a set of curly braces was missing git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3057 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/copy_addrs.c b/src/lib/krb5/krb/copy_addrs.c index b1551395a..c297657d0 100644 --- a/src/lib/krb5/krb/copy_addrs.c +++ b/src/lib/krb5/krb/copy_addrs.c @@ -76,12 +76,13 @@ krb5_address ***outaddr; if (!(tempaddr = (krb5_address **) calloc(nelems+1, sizeof(*tempaddr)))) return ENOMEM; - for (nelems = 0; inaddr[nelems]; nelems++) + for (nelems = 0; inaddr[nelems]; nelems++) { retval = krb5_copy_addr(inaddr[nelems], &tempaddr[nelems]); if (retval) { krb5_free_addresses(tempaddr); return retval; } + } *outaddr = tempaddr; return 0;