From 9b935deff6238c5e98ed954fb037e42d321d72ed Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Mar 2020 17:18:44 +0100 Subject: [PATCH] documented to return zero on failure, not vice versa --- src/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 index 99e1af4c..b0c0842b 100644 --- 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;