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.
This commit is contained in:
Marcus Brinkmann 2009-11-10 09:04:17 +00:00
parent 1d3c39fd7b
commit b3cda3f45c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2009-11-05 Marcus Brinkmann <marcus@g10code.de>
* call-dirmngr.c (start_dirmngr_ext): Update use of

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