[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/03: Fixed MHD_CONNECTION_INFO_DAEMON: return master d
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/03: Fixed MHD_CONNECTION_INFO_DAEMON: return master daemon |
Date: |
Tue, 19 Sep 2023 19:35:32 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 7ae4bcccecac6e5933a9686cb5bb7647fb3a3432
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Sep 19 12:28:50 2023 +0300
Fixed MHD_CONNECTION_INFO_DAEMON: return master daemon
Previously a worker daemon could be returned for thread pool
configuration. The worker daemon should not be used directly by
application, it is for internal use only.
---
src/microhttpd/connection.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9e1352de..4d66f497 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -6962,7 +6962,8 @@ MHD_get_connection_info (struct MHD_Connection
*connection,
}
return NULL;
case MHD_CONNECTION_INFO_DAEMON:
- connection->connection_info_dummy.daemon = connection->daemon;
+ connection->connection_info_dummy.daemon =
+ MHD_get_master (connection->daemon);
return &connection->connection_info_dummy;
case MHD_CONNECTION_INFO_CONNECTION_FD:
connection->connection_info_dummy.connect_fd = connection->socket_fd;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.