diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-09 09:25:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-09 09:25:32 +0100 |
commit | bc15478c3b918a3f1cc128033ab8888f251143b2 (patch) | |
tree | 48bf18cfa2d5fa6e4dcc7c95deda4991937caca8 /src/util/taler-exchange-secmod-cs.c | |
parent | c3e1aa36ee671ae9c1078e7cc7e625d59e3bd008 (diff) | |
download | exchange-bc15478c3b918a3f1cc128033ab8888f251143b2.tar.xz |
-fix leak
Diffstat (limited to 'src/util/taler-exchange-secmod-cs.c')
-rw-r--r-- | src/util/taler-exchange-secmod-cs.c | 8 |
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 != |