mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* mainproc.c (proc_compressed): "Uncompressed" is not a valid compression
algorithm.
This commit is contained in:
parent
3e08d87168
commit
5d2060e211
2 changed files with 8 additions and 1 deletions
|
@ -748,7 +748,9 @@ proc_compressed( CTX c, PACKET *pkt )
|
|||
int rc;
|
||||
|
||||
/*printf("zip: compressed data packet\n");*/
|
||||
if( c->sigs_only )
|
||||
if( !zd->algorithm )
|
||||
rc=G10ERR_COMPR_ALGO;
|
||||
else 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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue