[svn] GnuPG - r5197 - trunk/sm
svn author marcus
cvs at cvs.gnupg.org
Tue Nov 10 10:04:18 CET 2009
Author: marcus
Date: 2009-11-10 10:04:17 +0100 (Tue, 10 Nov 2009)
New Revision: 5197
Modified:
trunk/sm/ChangeLog
trunk/sm/server.c
Log:
2009-11-10 Marcus Brinkmann <marcus at g10code.de>
* server.c (cmd_getauditlog): Don't dup FD for es_fdopen_nc as
this leaks the FD here.
Modified: trunk/sm/ChangeLog
===================================================================
--- trunk/sm/ChangeLog 2009-11-05 12:06:45 UTC (rev 5196)
+++ trunk/sm/ChangeLog 2009-11-10 09:04:17 UTC (rev 5197)
@@ -1,3 +1,8 @@
+2009-11-10 Marcus Brinkmann <marcus at g10code.de>
+
+ * server.c (cmd_getauditlog): Don't dup FD for es_fdopen_nc as
+ this leaks the FD here.
+
2009-11-05 Marcus Brinkmann <marcus at g10code.de>
* call-dirmngr.c (start_dirmngr_ext): Update use of
Modified: trunk/sm/server.c
===================================================================
--- trunk/sm/server.c 2009-11-05 12:06:45 UTC (rev 5196)
+++ trunk/sm/server.c 2009-11-10 09:04:17 UTC (rev 5197)
@@ -1050,7 +1050,7 @@
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");
More information about the Gnupg-commits
mailing list