diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-30 17:48:04 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-30 17:48:04 -0400 |
commit | ce384765f5457233f3b46e48fe77c339cc5784c1 (patch) | |
tree | 7a1ce3ec6d8d233434148684c2bc2ac52ef3fa98 /src/backend/taler-merchant-httpd_private-get-orders.c | |
parent | 034765718ee18166f634ba7dc996a159f82e76a6 (diff) | |
download | merchant-ce384765f5457233f3b46e48fe77c339cc5784c1.tar.gz merchant-ce384765f5457233f3b46e48fe77c339cc5784c1.tar.bz2 merchant-ce384765f5457233f3b46e48fe77c339cc5784c1.zip |
fix error message use-after-free
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-orders.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c index d890fa83..ab90c576 100644 --- a/src/backend/taler-merchant-httpd_private-get-orders.c +++ b/src/backend/taler-merchant-httpd_private-get-orders.c @@ -619,14 +619,17 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh, if ((0 > qs) || (0 != aos->result)) { + int aos_result = aos->result; + const char *aos_ec_msg = aos->ec_msg; + GNUNET_break (0); json_decref (aos->pa); GNUNET_free (aos); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_ORDERS_GET_DB_LOOKUP_ERROR, - 0 != aos->result ? - aos->ec_msg : + 0 != aos_result ? + aos_ec_msg : "failed to lookup orders in database"); } } |