commit 6de875a39decea456210ba87e9305cf260e04a3d
parent 8f07ac3d5056d115e7befe2391b0a73ec06c02c9
Author: Iván Ávalos <avalos@disroot.org>
Date: Mon, 24 Jun 2024 13:17:24 -0600
fix SIGSEGV in TALER_MHD_reply_legal
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
@@ -202,6 +202,9 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn,
char dat[128];
char *langs;
+ t = NULL;
+ langs = NULL;
+
a = GNUNET_TIME_relative_to_absolute (MAX_TERMS_CACHING);
m = GNUNET_TIME_absolute_to_timestamp (a);
/* Round up to next full day to ensure the expiration
@@ -222,8 +225,6 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn,
goto return_t;
}
- t = NULL;
- langs = NULL;
if (NULL != legal)
{
const char *mime;