gpg: Allow compressed data with algorithm 0.
authorWerner Koch <wk@gnupg.org>
Wed, 20 Aug 2014 10:05:16 +0000 (12:05 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 20 Aug 2014 10:05:16 +0000 (12:05 +0200)
* 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

index 5b6d8db..1e140ed 100644 (file)
@@ -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 );