From 7673ef7953482f42cab50dca1810e5c9d10f461e Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 19 Apr 2019 14:54:52 +0900 Subject: [PATCH] core: Fix duplication of close_notify_handler for gpgsm. * src/engine-gpgsm.c [!USE_DESCRIPTOR_PASSING] (gpgsm_new): Remove last call to _gpgme_io_set_close_notify. -- It is called just after the code in question for all cases. GnuPG-bug-id: 4456 Fixes-commit: dd21ec997cf4b6ba18538c63c728478110ad1f60 Signed-off-by: NIIBE Yutaka --- src/engine-gpgsm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/engine-gpgsm.c b/src/engine-gpgsm.c index 396f19c9..07fde4a9 100644 --- a/src/engine-gpgsm.c +++ b/src/engine-gpgsm.c @@ -549,8 +549,6 @@ gpgsm_new (void **engine, const char *file_name, const char *home_dir, || _gpgme_io_set_close_notify (gpgsm->output_cb.fd, close_notify_handler, gpgsm) || _gpgme_io_set_close_notify (gpgsm->message_cb.fd, - close_notify_handler, gpgsm) - || _gpgme_io_set_close_notify (gpgsm->diag_cb.fd, close_notify_handler, gpgsm))) { err = gpg_error (GPG_ERR_GENERAL);