[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 05/06: handle hypothetical failure of plug
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 05/06: handle hypothetical failure of plugin not found |
Date: |
Fri, 06 Oct 2017 22:02:27 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 98b7444a7b122498e5b6d693c4503b1702763307
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Oct 6 21:41:41 2017 +0200
handle hypothetical failure of plugin not found
---
src/exchange/taler-exchange-aggregator.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/exchange/taler-exchange-aggregator.c
b/src/exchange/taler-exchange-aggregator.c
index eb97edb..5e0c52c 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -1620,6 +1620,19 @@ wire_prepare_cb (void *cls,
"Starting wire transfer %llu\n",
(unsigned long long) rowid);
wpd->wp = find_plugin (wire_method);
+ if (NULL == wpd->wp)
+ {
+ /* Should really never happen here, as when we get
+ here the plugin should be in the cache. */
+ GNUNET_break (0);
+ db_plugin->rollback (db_plugin->cls,
+ wpd->session);
+ global_ret = GNUNET_SYSERR;
+ GNUNET_SCHEDULER_shutdown ();
+ GNUNET_free (wpd);
+ wpd = NULL;
+ return;
+ }
wpd->eh = wpd->wp->wire_plugin->execute_wire_transfer
(wpd->wp->wire_plugin->cls,
buf,
buf_size,
--
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, 2017/10/06
- [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 <=