documented to return zero on failure, not vice versa

This commit is contained in:
Christian Grothoff
2020-03-07 17:18:44 +01:00
parent 9ebe27e18d
commit 9b935deff6
+2 -2
View File
@@ -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;