use retval for return val
authorJohn Kohl <jtkohl@mit.edu>
Fri, 31 Aug 1990 12:03:30 +0000 (12:03 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 31 Aug 1990 12:03:30 +0000 (12:03 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1063 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/copy_princ.c

index a374d156e2decfe4f32b8814924fdc4e450d05a0..cdbdfab78ce06911a393891991dfa5728152ced9 100644 (file)
@@ -41,7 +41,7 @@ krb5_principal *outprinc;
     for (nelems = 0; inprinc[nelems]; nelems++)
        if (retval = krb5_copy_data(inprinc[nelems], &tempprinc[nelems])) {
            krb5_free_principal(tempprinc);
-           return ENOMEM;
+           return retval;
        }
 
     *outprinc = tempprinc;