gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 29/154: fix err logic


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 29/154: fix err logic
Date: Mon, 19 Aug 2019 10:15:41 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit e9c09cf9ae459c04bc9aa029f3e376e241afb16e
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jul 19 19:43:04 2019 +0200

    fix err logic
---
 src/microhttpd/mhd_send.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 220ca0f3..cd5b9ad5 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -82,12 +82,9 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
   bool using_tls = false;
   /* The socket. */
   MHD_socket s = connection->socket_fd;
-  int eno;
   ssize_t ret;
-  int optval;
   const MHD_SCKT_OPT_BOOL_ off_val = 0;
   const MHD_SCKT_OPT_BOOL_ on_val = 1;
-  const int err = MHD_socket_get_error_ ();
 
   /* error handling from send_param_adapter() */
   if ((MHD_INVALID_SOCKET == s) || (MHD_CONNECTION_CLOSED == 
connection->state))
@@ -244,6 +241,8 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
 
     if (0 > ret)
     {
+      const int err = MHD_socket_get_error_ ();
+
       if (MHD_SCKT_ERR_IS_EAGAIN_ (err))
       {
 #if EPOLL_SUPPORT
@@ -321,8 +320,6 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
   if (!have_more_data && corked)
     gnutls_record_uncork(connection->tls_session);
   */
-
-  errno = eno;
   return ret;
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]