exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a1bd70722b274622328ac8f992807148782694e5
parent 3cbb324552868d3b60dda1c422363d5174b92ab0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 11 Oct 2026 15:02:28 +0200

handle NULL case that can arise if first recv() is interrupted

Diffstat:
Msrc/util/secmod_common.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/util/secmod_common.c b/src/util/secmod_common.c @@ -195,8 +195,8 @@ TES_normalize_key_directory (const struct GNUNET_CONFIGURATION_Handle *cfg, if (GNUNET_OK != GNUNET_DISK_directory_create (keydir)) return GNUNET_SYSERR; if (0 > GNUNET_DISK_directory_scan (keydir, - &collect_key_directory, - &ctx)) + &collect_key_directory, + &ctx)) ret = GNUNET_SYSERR; for (unsigned int i = 0; i < ctx.num_dirs; i++) { @@ -497,7 +497,8 @@ more: GNUNET_break_op (0); return GNUNET_SYSERR; } - } while (off < msize); + } while ( (NULL == hdr) || + (off < msize) ); ret = dispatch (client, hdr);