From f1e930585a5eb8ef184f5a0ad1e85759e01e60d0 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 31 May 2004 23:48:24 +0000 Subject: [PATCH 1/1] cscvs to tla changeset 131 Author: noodles Date: 2004/05/27 18:42:22 Silly bug fix for new format packet lengths. --- parsekey.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parsekey.c b/parsekey.c index 5c6b320..4482d8b 100644 --- a/parsekey.c +++ b/parsekey.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: parsekey.c,v 1.18 2004/01/04 18:47:35 noodles Exp $ + * $Id: parsekey.c,v 1.19 2004/05/27 18:42:22 noodles Exp $ */ #include @@ -225,13 +225,13 @@ int read_openpgp_stream(int (*getchar_func)(void *ctx, size_t count, curpacket->packet->length = curchar; curpacket->packet->length <<= 8; rc = getchar_func(ctx, 1, &curchar); - curpacket->packet->length = curchar; + curpacket->packet->length += curchar; curpacket->packet->length <<= 8; rc = getchar_func(ctx, 1, &curchar); - curpacket->packet->length = curchar; + curpacket->packet->length += curchar; curpacket->packet->length <<= 8; rc = getchar_func(ctx, 1, &curchar); - curpacket->packet->length = curchar; + curpacket->packet->length += curchar; } } else { curpacket->packet->tag = (curchar & 0x3C) >> 2; -- 2.39.5