From bc15478c3b918a3f1cc128033ab8888f251143b2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 9 Feb 2022 09:25:32 +0100 Subject: -fix leak --- src/util/taler-exchange-secmod-cs.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/util/taler-exchange-secmod-cs.c') diff --git a/src/util/taler-exchange-secmod-cs.c b/src/util/taler-exchange-secmod-cs.c index 5446c70f7..17fb23b3d 100644 --- a/src/util/taler-exchange-secmod-cs.c +++ b/src/util/taler-exchange-secmod-cs.c @@ -43,8 +43,6 @@ #include -#define TALER_CFG_CIPHER_LEN 3 - /** * Information we keep per denomination. */ @@ -1383,14 +1381,12 @@ load_denominations (void *cls, "CIPHER"); return; } - if (strlen (cipher) > TALER_CFG_CIPHER_LEN) - { - return; /* Cipher length must be smaller than TALER_CFG_CIPHER_LEN */ - } if (0 != strcmp (cipher, "CS")) { + GNUNET_free (cipher); return; /* Ignore denominations of other types than CS*/ } + GNUNET_free (cipher); denom = GNUNET_new (struct Denomination); if (GNUNET_OK != -- cgit v1.2.3