summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-cs.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-09 09:25:32 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-09 09:25:32 +0100
commitbc15478c3b918a3f1cc128033ab8888f251143b2 (patch)
tree48bf18cfa2d5fa6e4dcc7c95deda4991937caca8 /src/util/taler-exchange-secmod-cs.c
parentc3e1aa36ee671ae9c1078e7cc7e625d59e3bd008 (diff)
downloadexchange-bc15478c3b918a3f1cc128033ab8888f251143b2.tar.gz
exchange-bc15478c3b918a3f1cc128033ab8888f251143b2.tar.bz2
exchange-bc15478c3b918a3f1cc128033ab8888f251143b2.zip
-fix leak
Diffstat (limited to 'src/util/taler-exchange-secmod-cs.c')
-rw-r--r--src/util/taler-exchange-secmod-cs.c8
1 files changed, 2 insertions, 6 deletions
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 <poll.h>
-#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 !=