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-rsa.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/util/taler-exchange-secmod-rsa.c') diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c index ba6ee978..06c42a02 100644 --- a/src/util/taler-exchange-secmod-rsa.c +++ b/src/util/taler-exchange-secmod-rsa.c @@ -41,7 +41,6 @@ #include "secmod_common.h" #include -#define TALER_CFG_CIPHER_LEN 3 /** * Information we keep per denomination. @@ -1361,14 +1360,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, "RSA")) { + GNUNET_free (cipher); return; /* Ignore denominations of other types than CS */ } + GNUNET_free (cipher); denom = GNUNET_new (struct Denomination); if (GNUNET_OK != parse_denomination_cfg (ctx->cfg, -- cgit v1.2.3