[Pkg-gnupg-commit] [gnupg2] 47/205: common/exechelp: Fix error handling.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed May 11 08:38:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit f5a4b6a3a39a2b78d33769184d6133d5e256e02c
Author: Justus Winter <justus at g10code.com>
Date: Tue Jan 19 13:09:06 2016 +0100
common/exechelp: Fix error handling.
* common/exechelp-w32.c (gnupg_spawn_process): Close the right handle.
Signed-off-by: Justus Winter <justus at g10code.com>
---
common/exechelp-w32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c
index 7439c0b..1b3d072 100644
--- a/common/exechelp-w32.c
+++ b/common/exechelp-w32.c
@@ -430,7 +430,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
if (infp)
es_fclose (infp);
else if (inpipe[1] != INVALID_HANDLE_VALUE)
- CloseHandle (outpipe[1]);
+ CloseHandle (inpipe[1]);
if (inpipe[0] != INVALID_HANDLE_VALUE)
CloseHandle (inpipe[0]);
return err;
@@ -466,7 +466,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
if (infp)
es_fclose (infp);
else if (inpipe[1] != INVALID_HANDLE_VALUE)
- CloseHandle (outpipe[1]);
+ CloseHandle (inpipe[1]);
if (inpipe[0] != INVALID_HANDLE_VALUE)
CloseHandle (inpipe[0]);
return err;
--
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