aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-06-24 13:17:24 -0600
committerIván Ávalos <avalos@disroot.org>2024-06-24 13:17:24 -0600
commit6de875a39decea456210ba87e9305cf260e04a3d (patch)
tree9b8eec4fafc8055f815761d2df8a47dbc5ab881e
parent8f07ac3d5056d115e7befe2391b0a73ec06c02c9 (diff)
downloadexchange-6de875a39decea456210ba87e9305cf260e04a3d.tar.xz
fix SIGSEGV in TALER_MHD_reply_legal
-rw-r--r--src/mhd/mhd_legal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index df6b01d86..9b80bf41b 100644
--- 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;