mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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:
parent
1d3c39fd7b
commit
b3cda3f45c
@ -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>
|
2009-11-05 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* call-dirmngr.c (start_dirmngr_ext): Update use of
|
* call-dirmngr.c (start_dirmngr_ext): Update use of
|
||||||
|
@ -1050,7 +1050,7 @@ cmd_getauditlog (assuan_context_t ctx, char *line)
|
|||||||
if (out_fd == -1)
|
if (out_fd == -1)
|
||||||
return set_error (GPG_ERR_ASS_NO_OUTPUT, NULL);
|
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)
|
if (!out_stream)
|
||||||
{
|
{
|
||||||
return set_error (GPG_ERR_ASS_GENERAL, "es_fdopen() failed");
|
return set_error (GPG_ERR_ASS_GENERAL, "es_fdopen() failed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user