[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: better error handling on configu
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: better error handling on configuration failures |
Date: |
Wed, 06 Jan 2021 10:17:01 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new dc570d0c better error handling on configuration failures
dc570d0c is described below
commit dc570d0c06cea200378d8b1030242081ebc4e356
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jan 6 10:16:58 2021 +0100
better error handling on configuration failures
---
src/util/crypto_helper_esign.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c
index 8b2b8216..8d2a9dc5 100644
--- a/src/util/crypto_helper_esign.c
+++ b/src/util/crypto_helper_esign.c
@@ -62,6 +62,7 @@ struct TALER_CRYPTO_ExchangeSignHelper
* Have we reached the sync'ed state?
*/
bool synced;
+
};
@@ -239,6 +240,15 @@ TALER_CRYPTO_helper_esign_connect (
return NULL;
}
esh->template = template;
+ if (strlen (template) >= sizeof (esh->sa.sun_path))
+ {
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ "PATHS",
+ "TALER_RUNTIME_DIR",
+ "path too long");
+ TALER_CRYPTO_helper_esign_disconnect (esh);
+ return NULL;
+ }
}
TALER_CRYPTO_helper_esign_poll (esh);
return esh;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: better error handling on configuration failures,
gnunet <=