mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
Allow compressed data with algorithm 0.
* g10/mainproc.c (proc_compressed): Remove superfluous check for an algorithm number of 0. This is bug#1326.
This commit is contained in:
parent
8b9fb19a90
commit
88633bf3d4
@ -771,9 +771,7 @@ proc_compressed( CTX c, PACKET *pkt )
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
/*printf("zip: compressed data packet\n");*/
|
/*printf("zip: compressed data packet\n");*/
|
||||||
if( !zd->algorithm )
|
if (c->sigs_only)
|
||||||
rc=G10ERR_COMPR_ALGO;
|
|
||||||
else if( c->sigs_only )
|
|
||||||
rc = handle_compressed( c, zd, proc_compressed_cb, c );
|
rc = handle_compressed( c, zd, proc_compressed_cb, c );
|
||||||
else if( c->encrypt_only )
|
else if( c->encrypt_only )
|
||||||
rc = handle_compressed( c, zd, proc_encrypt_cb, c );
|
rc = handle_compressed( c, zd, proc_encrypt_cb, c );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user