commit 791b12be20177766493e376575b1358441358c7e
parent 2ccdc71e12f63ec7fcfbc13fba013f8544f045bb
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 11 Jul 2026 19:32:38 +0200
close stdout on out-of-memory, not stdin
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/json/conversion.c b/src/json/conversion.c
@@ -130,8 +130,8 @@ read_cb (void *cls)
/* Helper returned more than 40 MB of data! Stop reading! */
GNUNET_break (0);
GNUNET_break (GNUNET_OK ==
- GNUNET_DISK_file_close (ec->chld_stdin));
- ec->chld_stdin = NULL;
+ GNUNET_DISK_file_close (ec->chld_stdout));
+ ec->chld_stdout = NULL;
return;
}
tmp = GNUNET_malloc_large (ns);
@@ -141,8 +141,8 @@ read_cb (void *cls)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR,
"malloc");
GNUNET_break (GNUNET_OK ==
- GNUNET_DISK_file_close (ec->chld_stdin));
- ec->chld_stdin = NULL;
+ GNUNET_DISK_file_close (ec->chld_stdout));
+ ec->chld_stdout = NULL;
return;
}
GNUNET_memcpy (tmp,