commit 291a148080109f6783630996803753f67787b17c
parent 22a04edf90d797581abadc00733e55a08f58ac6a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 31 Oct 2021 17:14:19 +0300
MHD_get_connection_info(): fixed return value
Fixed return value for MHD_CONNECTION_INFO_CONNECTION_TIMEOUT.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -4818,7 +4818,7 @@ MHD_get_connection_info (struct MHD_Connection *connection,
return (const union MHD_ConnectionInfo *) &connection->suspended_dummy;
case MHD_CONNECTION_INFO_CONNECTION_TIMEOUT:
connection->connection_timeout_dummy =
- (unsigned int) connection->connection_timeout_ms * 1000;
+ (unsigned int) connection->connection_timeout_ms / 1000;
return (const union MHD_ConnectionInfo *) &connection->
connection_timeout_dummy;
case MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE: