fix use-after-free

This commit is contained in:
Christian Grothoff 2019-09-16 21:47:51 +02:00
parent 93ab8a2049
commit 7914d7c7e3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -913,7 +913,7 @@ bhist_cb (void *cls,
whh->hh = NULL; whh->hh = NULL;
taler_bank_get_history_cancel (NULL, taler_bank_get_history_cancel (NULL,
whh); whh);
break; return;
default: default:
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Bank failed with HTTP status %u (EC: %u)\n", "Bank failed with HTTP status %u (EC: %u)\n",
@ -929,9 +929,8 @@ bhist_cb (void *cls,
whh->hh = NULL; whh->hh = NULL;
taler_bank_get_history_cancel (NULL, taler_bank_get_history_cancel (NULL,
whh); whh);
break; return;
} }
whh->hh = NULL;
} }