return retval as appropriate
authorJohn Kohl <jtkohl@mit.edu>
Tue, 8 May 1990 15:59:08 +0000 (15:59 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 8 May 1990 15:59:08 +0000 (15:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@786 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/copy_addrs.c

index 5218f764b9d427129c0ce7745182fa74b97f8d44..04042f68a8e5b50de14dc38e9300befee422714a 100644 (file)
@@ -61,7 +61,7 @@ krb5_address ***outaddr;
     for (nelems = 0; inaddr[nelems]; nelems++)
        if (retval = krb5_copy_addr(inaddr[nelems], &tempaddr[nelems])) {
            krb5_free_address(tempaddr);
-           return ENOMEM;
+           return retval;
        }
 
     *outaddr = tempaddr;