[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 04/06: handle plugin load failure without
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 04/06: handle plugin load failure without crashing |
Date: |
Fri, 06 Oct 2017 22:02:26 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 9b585fd066c238485b161b7664901e9d23ecf56b
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Oct 6 21:39:19 2017 +0200
handle plugin load failure without crashing
---
src/exchange/test_taler_exchange_aggregator.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/exchange/test_taler_exchange_aggregator.c
b/src/exchange/test_taler_exchange_aggregator.c
index 7f9ea41..0b56b48 100644
--- a/src/exchange/test_taler_exchange_aggregator.c
+++ b/src/exchange/test_taler_exchange_aggregator.c
@@ -1125,6 +1125,12 @@ run (void *cls)
struct TALER_DenominationPublicKey dpk;
plugin = TALER_EXCHANGEDB_plugin_load (cfg);
+ if (NULL == plugin)
+ {
+ GNUNET_break (0);
+ result = 77;
+ return;
+ }
if (GNUNET_OK !=
plugin->create_tables (plugin->cls))
{
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (d550506 -> 332a372), gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 04/06: handle plugin load failure without crashing,
gnunet <=
- [GNUnet-SVN] [taler-exchange] 03/06: use proper type for do_shutdown() callback, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 02/06: reduce scope of local vars, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 06/06: handle (most) TEH_KS_acquire errors, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 01/06: add assertion to be more defensive against buffer overflow (cannot happen, but this better protects against future changes), gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 05/06: handle hypothetical failure of plugin not found, gnunet, 2017/10/06