2009-11-10 Marcus Brinkmann <marcus@g10code.de>

* server.c (cmd_getauditlog): Don't dup FD for es_fdopen_nc as
	this leaks the FD here.

(cherry picked from commit b3cda3f45c)

Resolved Conflicts:
	sm/ChangeLog-2011 - Removed.

GnuPG-bug-id: 1535
This commit is contained in:
Marcus Brinkmann 2009-11-10 09:04:17 +00:00 committed by Werner Koch
parent 0f18295ac8
commit 801ea11f21
1 changed files with 1 additions and 1 deletions

View File

@ -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");