commit c690b40eb0782d2af3b409b449d166aa8e5de91b parent efc136b4ef498a128009c6b32191cbf11e6c8d4d Author: Christian Grothoff <grothoff@gnunet.org> Date: Sun, 3 Sep 2023 12:05:07 +0200 proper fix for #7757 Diffstat:
| M | src/microhttpd/connection.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -2763,9 +2763,16 @@ transmit_error_response_len (struct MHD_Connection *connection, iret = MHD_YES; if (MHD_NO != iret) + { + bool before = connection->in_access_handler; + + /* Fake the flag for the internal call */ + connection->in_access_handler = true; iret = MHD_queue_response (connection, status_code, response); + connection->in_access_handler = before; + } MHD_destroy_response (response); if (MHD_NO == iret) {