aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-16 21:47:51 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-16 21:47:51 +0200
commit7914d7c7e304efe9cc84ff6d01e52f6db28f4188 (patch)
tree67bf78771d3d00c948513f3a02895fa89ab0523f /src
parent93ab8a2049e635fcd759bfc3d58247e22560b258 (diff)
fix use-after-free
Diffstat (limited to 'src')
-rw-r--r--src/wire-plugins/plugin_wire_taler-bank.c5
1 files changed, 2 insertions, 3 deletions
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;
}