diff options
author | Werner Koch <[email protected]> | 1997-11-23 15:38:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1997-11-23 15:38:27 +0000 |
commit | db19a275188b4b3226ac4bbfc121f85ff373d331 (patch) | |
tree | 936dfd3ee12828d5392c19f50024ff70c7171371 /g10/parse-packet.c | |
parent | Armor works now (diff) | |
download | gnupg-db19a275188b4b3226ac4bbfc121f85ff373d331.tar.gz gnupg-db19a275188b4b3226ac4bbfc121f85ff373d331.zip |
compress stuff implemented
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 68d02536d..33cfda38f 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -127,7 +127,8 @@ parse_packet( IOBUF inp, PACKET *pkt ) pktlen = 0; if( !lenbytes ) { pktlen = 0; /* don't know the value */ - iobuf_set_block_mode(inp, 1); + if( pkttype != PKT_COMPR_DATA ) + iobuf_set_block_mode(inp, 1); } else { for( ; lenbytes; lenbytes-- ) { @@ -626,7 +627,6 @@ parse_compressed( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *pkt ) zd->len = 0; /* not yet used */ zd->algorithm = iobuf_get_noeof(inp); zd->buf = inp; - algorithm = iobuf_get_noeof(inp); if( list_mode ) printf(":compressed packet: algo=%d\n", zd->algorithm); return 0; |