summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-08-18 10:51:37 +0000
committerng0 <ng0@n0.is>2019-08-18 10:51:37 +0000
commitb8e368272a4416aaf078525a4043a6f87a98bfee (patch)
tree6eccae5a9e2d328a2433f18a7e783f6927ad20ff
parentd72f4184e976f9746801bc3a0b7fb083ad8c065b (diff)
mhd_send.c: log EINVAL
-rw-r--r--src/microhttpd/mhd_send.c10
1 files changed, 10 insertions, 0 deletions
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 */