summaryrefslogtreecommitdiff
path: root/src/wire-plugins
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-15 12:20:00 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-15 12:20:00 +0200
commit202827ebdaafdf33b78c202bcbb6917dd65dd1c1 (patch)
treeb5689b28c58e1698dff0f296dbe78ec432430512 /src/wire-plugins
parentaea82d3dcde94b68a70a65be8736cf7ad437b0c7 (diff)
parent1b3bf1a00126baffd016676ad1d668637b8b2efe (diff)
downloadexchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.tar.gz
exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.tar.bz2
exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.zip
merging Florian's changes with my wire changes
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)