From 45e3b81114f40070dd638ac790f42df01b8c1484 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 20 Aug 2014 12:05:16 +0200 Subject: [PATCH] gpg: Allow compressed data with algorithm 0. * g10/mainproc.c (proc_compressed): Remove superfluous check for an algorithm number of 0. -- (backport from commit 88633bf3d417aeb5ea0f75508aba8e32adc8acef) GnuPG-bug-id: 1326, 1684 --- g10/mainproc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/g10/mainproc.c b/g10/mainproc.c index 5b6d8db04..1e140edf4 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -778,10 +778,7 @@ proc_compressed( CTX c, PACKET *pkt ) PKT_compressed *zd = pkt->pkt.compressed; int rc; - /*printf("zip: compressed data packet\n");*/ - if( !zd->algorithm ) - rc=G10ERR_COMPR_ALGO; - else if( c->sigs_only ) + if (c->sigs_only) rc = handle_compressed( c, zd, proc_compressed_cb, c ); else if( c->encrypt_only ) rc = handle_compressed( c, zd, proc_encrypt_cb, c );