aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
79 break; 79 break;
80 case EINVAL: 80 case EINVAL:
81 /* FIXME: optlen invalid, should at least log this, maybe die */ 81 /* FIXME: optlen invalid, should at least log this, maybe die */
82#ifdef HAVE_MESSAGES
83 MHD_DLOG (daemon,
84 _("optlen invalid: %s\n"),
85 MHD_socket_last_strerr_());
86#endif
82 break; 87 break;
83 case EFAULT: 88 case EFAULT:
84 /* wopsie, should at leats log this, FIXME: maybe die */ 89 /* wopsie, should at leats log this, FIXME: maybe die */
@@ -160,6 +165,11 @@ post_cork_setsockopt (struct MHD_Connection *connection,
160 break; 165 break;
161 case EINVAL: 166 case EINVAL:
162 /* FIXME: optlen invalid, should at least log this, maybe die */ 167 /* FIXME: optlen invalid, should at least log this, maybe die */
168#ifdef HAVE_MESSAGES
169 MHD_DLOG (daemon,
170 _("optlen invalid: %s\n"),
171 MHD_socket_last_strerr_());
172#endif
163 break; 173 break;
164 case EFAULT: 174 case EFAULT:
165 /* wopsie, should at leats log this, FIXME: maybe die */ 175 /* wopsie, should at leats log this, FIXME: maybe die */