From: John Carr Date: Fri, 21 Aug 1992 03:06:57 +0000 (+0000) Subject: Fix loop exit test: rv->next should have been rv X-Git-Tag: krb5-1.0-beta2~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cbb875a9807a0b6041066f3b7fd9dd71bde6df48;p=krb5.git Fix loop exit test: rv->next should have been rv git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2353 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/adat2kadat.c b/src/lib/krb5/asn.1/adat2kadat.c index a0cfe863e..440f3d425 100644 --- a/src/lib/krb5/asn.1/adat2kadat.c +++ b/src/lib/krb5/asn.1/adat2kadat.c @@ -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;