1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* decrypt.c (gpgsm_decrypt): Bail out after an decryption error.

* server.c (reset_notify): Close input and output FDs.
(cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
(cmd_genkey): Close the FDs and release the recipient list even in
the error case.
This commit is contained in:
Werner Koch 2002-02-06 14:52:03 +00:00
parent 0c4c0f2ecc
commit 6aa7267865
3 changed files with 45 additions and 45 deletions

View file

@ -385,8 +385,13 @@ gpgsm_decrypt (CTRL ctrl, int in_fd, FILE *out_fp)
&dfparm);
xfree (enc_val);
if (rc)
log_error ("decrypting session key failed: %s\n",
gnupg_strerror (rc));
{
/* fixme: as soon as we support multiple recipients, we
should just set a flag and try the next recipient */
log_error ("decrypting session key failed: %s\n",
gnupg_strerror (rc));
goto leave;
}
else
{ /* setup the bulk decrypter */
ksba_writer_set_filter (writer,