libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit b8e368272a4416aaf078525a4043a6f87a98bfee
parent d72f4184e976f9746801bc3a0b7fb083ad8c065b
Author: ng0 <ng0@n0.is>
Date:   Sun, 18 Aug 2019 10:51:37 +0000

mhd_send.c: log EINVAL

Diffstat:
Msrc/microhttpd/mhd_send.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git 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 */