summaryrefslogtreecommitdiff
path: root/src/wire-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/wire-plugins')
-rw-r--r--src/wire-plugins/plugin_wire_taler-bank.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wire-plugins/plugin_wire_taler-bank.c b/src/wire-plugins/plugin_wire_taler-bank.c
index 2d2235343..743d85b2f 100644
--- a/src/wire-plugins/plugin_wire_taler-bank.c
+++ b/src/wire-plugins/plugin_wire_taler-bank.c
@@ -905,7 +905,11 @@ bhist_cb (void *cls,
sizeof (bserial_id),
&wd)) )
whh->hres_cb = NULL;
- return; /* do NOT yet clean up! */
+ GNUNET_break (NULL != whh->hh);
+ /* Once we get the sentinel element, the handle becomes invalid. */
+ if (TALER_BANK_DIRECTION_NONE == dir)
+ whh->hh = NULL;
+ return;
}
case MHD_HTTP_NO_CONTENT:
if (NULL != whh->hres_cb)