Fix loop exit test: rv->next should have been rv
authorJohn Carr <jfc@mit.edu>
Fri, 21 Aug 1992 03:06:57 +0000 (03:06 +0000)
committerJohn Carr <jfc@mit.edu>
Fri, 21 Aug 1992 03:06:57 +0000 (03:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2353 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/adat2kadat.c

index a0cfe863edc599989f5b26a1b5f34c7328e64359..440f3d425a11f5577b1435a4efe4f08467008841 100644 (file)
@@ -101,7 +101,7 @@ register int *error;
        *error = ENOMEM;
        return(0);
     }
-    for (i = 0, rv = val; rv->next; rv = rv->next, i++) {
+    for (i = 0, rv = val; rv; rv = rv->next, i++) {
        if (qb_pullup(rv->element_KRB5_2->ad__data) != OK) {
            xfree(retval);
            goto nomem;