commit a16daa120fece7f950a9c2faf5db57eb1ca71d84
parent b18069097c798f5bf53d71ea8b4e5f9ea329dfa3
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 21 Nov 2024 13:13:17 +0100
-fix use-after-free
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/secmod_eddsa.c b/src/util/secmod_eddsa.c
@@ -1003,10 +1003,10 @@ load_durations (const struct GNUNET_CONFIGURATION_Handle *cfg)
"DURATION",
&duration))
{
- GNUNET_free (secname);
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
secname,
"DURATION");
+ GNUNET_free (secname);
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
@@ -1015,10 +1015,10 @@ load_durations (const struct GNUNET_CONFIGURATION_Handle *cfg)
"LOOKAHEAD_SIGN",
&lookahead_sign))
{
- GNUNET_free (secname);
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
secname,
"LOOKAHEAD_SIGN");
+ GNUNET_free (secname);
return GNUNET_SYSERR;
}
GNUNET_free (secname);