From 60b78d8e58427e6e01a30e0e65ce159d7362a27f Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 27 Apr 2002 12:11:52 +0000 Subject: [PATCH] 2002-04-27 Marcus Brinkmann * 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. --- trunk/gpgme/ChangeLog | 6 ++++++ trunk/gpgme/engine-gpgsm.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index f2a9235..cfcdb8d 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,9 @@ +2002-04-27 Marcus Brinkmann + + * 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 * Makefile.am (libgpgme_la_LIBADD): Use libtool libraries. diff --git a/trunk/gpgme/engine-gpgsm.c b/trunk/gpgme/engine-gpgsm.c index f2584a0..aa1b09f 100644 --- a/trunk/gpgme/engine-gpgsm.c +++ b/trunk/gpgme/engine-gpgsm.c @@ -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; } -- 2.26.2