commit 010cdd2782b6fc03e0ccacea278bcd0e18a5e4c2
parent 10d0e97f191a8bd7de07049559a2eccb29a78507
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 1 Apr 2025 14:19:26 +0200
-work arounds
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/sync/sync-httpd2.c b/src/sync/sync-httpd2.c
@@ -236,10 +236,12 @@ url_handler (void *cls,
struct SYNC_AccountPublicKeyP account_pub;
(void) cls;
+#if BUG
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Handling %s request for URL '%s'\n",
MHD_http_method_to_string (method)->cstr,
path->cstr);
+#endif
if (0 == strncmp (path->cstr,
"/backups/",
strlen ("/backups/")))
diff --git a/src/sync/sync-httpd2_backup-post.c b/src/sync/sync-httpd2_backup-post.c
@@ -780,18 +780,20 @@ SH_backup_post (struct MHD_Request *request,
request,
MHD_REQUEST_INFO_FIXED_APP_CONTEXT,
&fi));
- bc = *fi.v_ppvoid;
+ bc = *fi.v_app_context_ppvoid;
if (NULL == bc)
{
/* first call, setup internals */
bc = GNUNET_new (struct BackupContext);
bc->request = request;
bc->account = *account;
+#if BUG
GNUNET_assert (MHD_SC_OK ==
MHD_REQUEST_SET_OPTIONS (
MHD_R_OPTION_TERMINATION_CALLBACK (&cleanup_ctx,
bc)));
- *fi.v_ppvoid = bc;
+#endif
+ *fi.v_app_context_ppvoid = bc;
}
if (NULL != bc->resp)
return MHD_action_from_response (request,