2002-04-27 Marcus Brinkmann <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Close the output
	descriptor only when we don't need it anymore.  Close the message
	descriptor if we don't need it.
This commit is contained in:
Marcus Brinkmann 2002-04-27 12:11:52 +00:00
parent 996d48a95e
commit 40717c3184
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-04-27 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Close the output
descriptor only when we don't need it anymore. Close the message
descriptor if we don't need it.
2002-04-26 Werner Koch <wk@gnupg.org>
* Makefile.am (libgpgme_la_LIBADD): Use libtool libraries.

View File

@ -878,6 +878,7 @@ _gpgme_gpgsm_op_verify (GpgsmObject gpgsm, GpgmeData sig, GpgmeData text)
gpgsm->output_data = text;
err = gpgsm_set_fd (gpgsm->assuan_ctx, "OUTPUT", gpgsm->output_fd_server,
0);
_gpgme_io_close (gpgsm->message_fd);
}
else
{
@ -885,10 +886,10 @@ _gpgme_gpgsm_op_verify (GpgsmObject gpgsm, GpgmeData sig, GpgmeData text)
gpgsm->message_data = text;
err = gpgsm_set_fd (gpgsm->assuan_ctx, "MESSAGE",
gpgsm->message_fd_server, 0);
_gpgme_io_close (gpgsm->output_fd);
}
if (err)
return err;
_gpgme_io_close (gpgsm->output_fd);
return 0;
}