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. (cherry picked from commit b3cda3f45cdbf3c66538589c7e108cbf73adc850) Resolved Conflicts: sm/ChangeLog-2011 - Removed. GnuPG-bug-id: 1535
This commit is contained in:
parent
0f18295ac8
commit
801ea11f21
@ -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