libmicrohttpd

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

commit 9b935deff6238c5e98ed954fb037e42d321d72ed
parent 9ebe27e18d0f2bd20865027d838dcacb6891d1f6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  7 Mar 2020 17:18:44 +0100

documented to return zero on failure, not vice versa

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 @@ -63,7 +63,7 @@ pre_cork_setsockopt (struct MHD_Connection *connection, return; /* nothing to do *pre* syscall! */ ret = MHD_socket_cork_ (connection->socket_fd, true); - if (0 == ret) + if (0 != ret) { connection->sk_cork_on = true; return; @@ -150,7 +150,7 @@ post_cork_setsockopt (struct MHD_Connection *connection, pre-syscall) */ ret = MHD_socket_cork_ (connection->socket_fd, false); - if (0 == ret) + if (0 != ret) { connection->sk_cork_on = false; return;