]> the.earth.li Git - onak.git/commitdiff
cscvs to tla changeset 96
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:55 +0000 (23:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:55 +0000 (23:47 +0000)
Author: noodles
Date: 2003/09/30 16:58:04
Allow read_openpgp_stream to append to an existing list of packets rather
than only returning the new packets.

parsekey.c

index 4829e3e934efd73d1068b33991e95f0a59a515b8..ea56f835282905c905b8194db8884cfd83438c07 100644 (file)
@@ -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 <assert.h>
@@ -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)) {