commit 7914d7c7e304efe9cc84ff6d01e52f6db28f4188
parent 93ab8a2049e635fcd759bfc3d58247e22560b258
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 16 Sep 2019 21:47:51 +0200
fix use-after-free
Diffstat:
1 file 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
@@ -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;
}