common: Close input stream.
authorJustus Winter <justus@g10code.com>
Tue, 28 Jun 2016 13:01:57 +0000 (15:01 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 28 Jun 2016 13:01:57 +0000 (15:01 +0200)
* common/exechelp-posix.c (gnupg_spawn_process): Also close the input
stream in the child.

Signed-off-by: Justus Winter <justus@g10code.com>
common/exechelp-posix.c

index aefb653..b1b56f3 100644 (file)
@@ -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],