aboutsummaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-cs.c
diff options
context:
space:
mode:
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 !=