libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit c1b8333aa83738179f192ea2814cdaf88c22b711
parent b2b8492deef2a0ddec93b1e2b89e3300d820b76c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 17 Apr 2021 18:24:25 +0300

mhd_send: changed results for non-IP sockets

When some IP option is tried for non-IP socket report failure as option
cannot be applied.

Diffstat:
Msrc/microhttpd/mhd_send.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -176,7 +176,7 @@ MHD_connection_set_nodelay_state_ (struct MHD_Connection *connection, int err_code; if (_MHD_YES == connection->is_nonip) - return true; + return false; if (0 == setsockopt (connection->socket_fd, IPPROTO_TCP, @@ -246,7 +246,7 @@ MHD_connection_set_cork_state_ (struct MHD_Connection *connection, int err_code; if (_MHD_YES == connection->is_nonip) - return true; + return false; if (0 == setsockopt (connection->socket_fd, IPPROTO_TCP, MHD_TCP_CORK_NOPUSH,