aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2009-11-10 09:04:17 +0000
committerWerner Koch <[email protected]>2013-09-18 06:31:53 +0000
commit801ea11f21e4c29ab7220b0741691c1964b76854 (patch)
treecc1f729b5d01cdaa227a71d3c3ce5a0609647787
parentgpg: Use 2048 as the default keysize in batch mode. (diff)
downloadgnupg-801ea11f21e4c29ab7220b0741691c1964b76854.tar.gz
gnupg-801ea11f21e4c29ab7220b0741691c1964b76854.zip
2009-11-10 Marcus Brinkmann <[email protected]>
* server.c (cmd_getauditlog): Don't dup FD for es_fdopen_nc as this leaks the FD here. (cherry picked from commit b3cda3f45cdbf3c66538589c7e108cbf73adc850) Resolved Conflicts: sm/ChangeLog-2011 - Removed. GnuPG-bug-id: 1535
-rw-r--r--sm/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/server.c b/sm/server.c
index fcf47a79d..6ba5e58de 100644
--- a/sm/server.c
+++ b/sm/server.c
@@ -1050,7 +1050,7 @@ cmd_getauditlog (assuan_context_t ctx, char *line)
if (out_fd == -1)
return set_error (GPG_ERR_ASS_NO_OUTPUT, NULL);
- out_stream = es_fdopen_nc ( dup (out_fd), "w");
+ out_stream = es_fdopen_nc (out_fd, "w");
if (!out_stream)
{
return set_error (GPG_ERR_ASS_GENERAL, "es_fdopen() failed");