X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=parsekey.c;h=ea56f835282905c905b8194db8884cfd83438c07;hb=047b8ed75bbac19ef33690bd44746718a8261439;hp=4829e3e934efd73d1068b33991e95f0a59a515b8;hpb=c2524e42992138f66a836d6c7ffe725a307c50d2;p=onak.git diff --git a/parsekey.c b/parsekey.c index 4829e3e..ea56f83 100644 --- a/parsekey.c +++ b/parsekey.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: parsekey.c,v 1.10 2003/09/29 07:35:26 noodles Exp $ + * $Id: parsekey.c,v 1.11 2003/09/30 16:58:04 noodles Exp $ */ #include @@ -179,6 +179,10 @@ int read_openpgp_stream(int (*getchar_func)(void *ctx, size_t count, bool inpacket = false; assert(packets != NULL); + curpacket = *packets; + while (curpacket->next != NULL) { + curpacket = curpacket->next; + } while (!rc && !getchar_func(ctx, 1, &curchar)) { if (!inpacket && (curchar & 0x80)) {