sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 947acb7330a75e0ab6dfdcaaa6f6dc23e9f208e1
parent ddf4eba34eba6e9240e476a3666a162c07b35303
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  1 Dec 2020 20:51:01 +0100

fix crash if backend returns no body

Diffstat:
Msrc/sync/sync-httpd_backup_post.c | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/sync/sync-httpd_backup_post.c b/src/sync/sync-httpd_backup_post.c @@ -331,18 +331,18 @@ proposal_cb (void *cls, por->hr.http_status, (unsigned int) por->hr.ec); GNUNET_break (0); - bc->resp = TALER_MHD_make_json_pack ("{s:I, s:s, s:I, s:I, s:O}", - "code", - (json_int_t) - TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR, - "hint", - "Failed to setup order with merchant backend", - "backend-ec", - (json_int_t) por->hr.ec, - "backend-http-status", - (json_int_t) por->hr.http_status, - "backend-reply", - por->hr.reply); + bc->resp = TALER_MHD_make_json_pack ( + "{s:I, s:s, s:I, s:I, s:O?}", + "code", + (json_int_t) TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR, + "hint", + "Failed to setup order with merchant backend", + "backend-ec", + (json_int_t) por->hr.ec, + "backend-http-status", + (json_int_t) por->hr.http_status, + "backend-reply", + por->hr.reply); GNUNET_assert (NULL != bc->resp); bc->response_code = MHD_HTTP_FAILED_DEPENDENCY; return;