1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00

* mainproc.c (proc_compressed): "Uncompressed" is not a valid compression

algorithm.
This commit is contained in:
David Shaw 2006-03-06 23:14:13 +00:00
parent 3e08d87168
commit 5d2060e211
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-06 David Shaw <dshaw@jabberwocky.com>
* mainproc.c (proc_compressed): "Uncompressed" is not a valid
compression algorithm.
2006-03-06 Werner Koch <wk@g10code.com>
* mainproc.c (check_sig_and_print): Made the composition test more

View File

@ -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 );