gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 150/154: mhd_send.c: log EINVAL


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 150/154: mhd_send.c: log EINVAL
Date: Mon, 19 Aug 2019 10:17:42 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit b8e368272a4416aaf078525a4043a6f87a98bfee
Author: ng0 <address@hidden>
AuthorDate: Sun Aug 18 10:51:37 2019 +0000

    mhd_send.c: log EINVAL
---
 src/microhttpd/mhd_send.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 928e92cb..b3fb25da 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -79,6 +79,11 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
       break;
     case EINVAL:
       /* FIXME: optlen invalid, should at least log this, maybe die */
+#ifdef HAVE_MESSAGES
+      MHD_DLOG (daemon,
+                _("optlen invalid: %s\n"),
+                MHD_socket_last_strerr_());
+#endif
       break;
     case EFAULT:
       /* wopsie, should at leats log this, FIXME: maybe die */
@@ -160,6 +165,11 @@ post_cork_setsockopt (struct MHD_Connection *connection,
       break;
     case EINVAL:
       /* FIXME: optlen invalid, should at least log this, maybe die */
+#ifdef HAVE_MESSAGES
+      MHD_DLOG (daemon,
+                _("optlen invalid: %s\n"),
+                MHD_socket_last_strerr_());
+#endif
       break;
     case EFAULT:
       /* wopsie, should at leats log this, FIXME: maybe die */

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



reply via email to

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