From cbb875a9807a0b6041066f3b7fd9dd71bde6df48 Mon Sep 17 00:00:00 2001 From: John Carr Date: Fri, 21 Aug 1992 03:06:57 +0000 Subject: [PATCH] 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 --- src/lib/krb5/asn.1/adat2kadat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2