[Pkg-gnupg-commit] [gnupg2] 57/160: common: Close input stream.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jul 15 09:36:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch upstream
in repository gnupg2.

commit d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa
Author: Justus Winter <justus at g10code.com>
Date:   Tue Jun 28 15:01:57 2016 +0200

    common: Close input stream.
    
    * common/exechelp-posix.c (gnupg_spawn_process): Also close the input
    stream in the child.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 common/exechelp-posix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c
index aefb653..b1b56f3 100644
--- a/common/exechelp-posix.c
+++ b/common/exechelp-posix.c
@@ -523,6 +523,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
     {
       /* This is the child. */
       gcry_control (GCRYCTL_TERM_SECMEM);
+      es_fclose (infp);
       es_fclose (outfp);
       es_fclose (errfp);
       do_exec (pgmname, argv, inpipe[0], outpipe[1], errpipe[1],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list