gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-sync] branch master updated: fix crash if backend returns no body


From: gnunet
Subject: [taler-sync] branch master updated: fix crash if backend returns no body
Date: Tue, 01 Dec 2020 20:51:03 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository sync.

The following commit(s) were added to refs/heads/master by this push:
     new 947acb7  fix crash if backend returns no body
947acb7 is described below

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

    fix crash if backend returns no body
---
 src/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
index d25d230..392675a 100644
--- 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]