From 7914d7c7e304efe9cc84ff6d01e52f6db28f4188 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 Sep 2019 21:47:51 +0200 Subject: fix use-after-free --- src/wire-plugins/plugin_wire_taler-bank.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/wire-plugins/plugin_wire_taler-bank.c b/src/wire-plugins/plugin_wire_taler-bank.c index e1db643d3..eed57cb97 100644 --- a/src/wire-plugins/plugin_wire_taler-bank.c +++ b/src/wire-plugins/plugin_wire_taler-bank.c @@ -913,7 +913,7 @@ bhist_cb (void *cls, whh->hh = NULL; taler_bank_get_history_cancel (NULL, whh); - break; + return; default: GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Bank failed with HTTP status %u (EC: %u)\n", @@ -929,9 +929,8 @@ bhist_cb (void *cls, whh->hh = NULL; taler_bank_get_history_cancel (NULL, whh); - break; + return; } - whh->hh = NULL; } -- cgit v1.2.3