From: Jonathan McDowell Date: Mon, 31 May 2004 23:48:24 +0000 (+0000) Subject: cscvs to tla changeset 131 X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/f1e930585a5eb8ef184f5a0ad1e85759e01e60d0?hp=b7a5a70eb8d8f312325af828b47726977f4fbb79 cscvs to tla changeset 131 Author: noodles Date: 2004/05/27 18:42:22 Silly bug fix for new format packet lengths. --- 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;