aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-08-18 12:15:17 +0000
committerng0 <ng0@n0.is>2019-08-18 12:15:17 +0000
commit3242129e19b6e463d28b0e464cad9891a2cffe1e (patch)
tree357663626288f4a48250f16321eab40b23cdb662 /src/microhttpd/mhd_send.c
parent39ddaf988f41c50b3a36d6683b4ca3c7e298041d (diff)
downloadlibmicrohttpd-3242129e19b6e463d28b0e464cad9891a2cffe1e.tar.gz
libmicrohttpd-3242129e19b6e463d28b0e464cad9891a2cffe1e.zip
Revert "mhd_send.c: for now, let EINVAL and EBADF fail hard."
This reverts commit c51869af5a5f1b76cce745afaf9c75ac9a502ee0.
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r--src/microhttpd/mhd_send.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 862bd6e9..b3fb25da 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -76,7 +76,6 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
76 break; 76 break;
77 case EBADF: 77 case EBADF:
78 /* FIXME: should we die hard here? */ 78 /* FIXME: should we die hard here? */
79 return MHD_ERR_BADF_; /* Fail hard */
80 break; 79 break;
81 case EINVAL: 80 case EINVAL:
82 /* FIXME: optlen invalid, should at least log this, maybe die */ 81 /* FIXME: optlen invalid, should at least log this, maybe die */
@@ -85,7 +84,6 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
85 _("optlen invalid: %s\n"), 84 _("optlen invalid: %s\n"),
86 MHD_socket_last_strerr_()); 85 MHD_socket_last_strerr_());
87#endif 86#endif
88 return MHD_ERR_INVAL_; /* Fail hard */
89 break; 87 break;
90 case EFAULT: 88 case EFAULT:
91 /* wopsie, should at leats log this, FIXME: maybe die */ 89 /* wopsie, should at leats log this, FIXME: maybe die */
@@ -164,7 +162,6 @@ post_cork_setsockopt (struct MHD_Connection *connection,
164 break; 162 break;
165 case EBADF: 163 case EBADF:
166 /* FIXME: should we die hard here? */ 164 /* FIXME: should we die hard here? */
167 return MHD_ERR_BADF_; /* Fail hard */
168 break; 165 break;
169 case EINVAL: 166 case EINVAL:
170 /* FIXME: optlen invalid, should at least log this, maybe die */ 167 /* FIXME: optlen invalid, should at least log this, maybe die */
@@ -173,7 +170,6 @@ post_cork_setsockopt (struct MHD_Connection *connection,
173 _("optlen invalid: %s\n"), 170 _("optlen invalid: %s\n"),
174 MHD_socket_last_strerr_()); 171 MHD_socket_last_strerr_());
175#endif 172#endif
176 return MHD_ERR_INVAL_; /* Fail hard */
177 break; 173 break;
178 case EFAULT: 174 case EFAULT:
179 /* wopsie, should at leats log this, FIXME: maybe die */ 175 /* wopsie, should at leats log this, FIXME: maybe die */