diff options
Diffstat (limited to 'src/daemon/connection_https.c')
-rw-r--r-- | src/daemon/connection_https.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c index 78797aa4..7504031b 100644 --- a/src/daemon/connection_https.c +++ b/src/daemon/connection_https.c | |||
@@ -225,7 +225,7 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection) | |||
225 | * determined by peeking into the first message type byte of the | 225 | * determined by peeking into the first message type byte of the |
226 | * stream. | 226 | * stream. |
227 | * | 227 | * |
228 | * Error message handling : all fatal level messages cause the | 228 | * Error message handling: all fatal level messages cause the |
229 | * connection to be terminated. | 229 | * connection to be terminated. |
230 | * | 230 | * |
231 | * Application data is forwarded to the underlying daemon for | 231 | * Application data is forwarded to the underlying daemon for |
@@ -252,7 +252,7 @@ MHD_tls_connection_handle_read (struct MHD_Connection *connection) | |||
252 | #endif | 252 | #endif |
253 | 253 | ||
254 | /* discover content type */ | 254 | /* discover content type */ |
255 | if (recv (connection->socket_fd, &msg_type, 1, MSG_PEEK) == -1) | 255 | if (RECV (connection->socket_fd, &msg_type, 1, MSG_PEEK) == -1) |
256 | { | 256 | { |
257 | #if HAVE_MESSAGES | 257 | #if HAVE_MESSAGES |
258 | MHD_DLOG (connection->daemon, "Failed to peek into TLS content type\n"); | 258 | MHD_DLOG (connection->daemon, "Failed to peek into TLS content type\n"); |
@@ -339,7 +339,7 @@ MHD_tls_connection_handle_read (struct MHD_Connection *connection) | |||
339 | MHD_TLS_REQUEST_TERMINATED_WITH_FATAL_ALERT); | 339 | MHD_TLS_REQUEST_TERMINATED_WITH_FATAL_ALERT); |
340 | return MHD_NO; | 340 | return MHD_NO; |
341 | } | 341 | } |
342 | /* this should never execut */ | 342 | /* this should never execute */ |
343 | else | 343 | else |
344 | { | 344 | { |
345 | #if HAVE_MESSAGES | 345 | #if HAVE_MESSAGES |
@@ -414,3 +414,5 @@ MHD_set_https_calbacks (struct MHD_Connection *connection) | |||
414 | connection->write_handler = &MHD_tls_connection_handle_write; | 414 | connection->write_handler = &MHD_tls_connection_handle_write; |
415 | connection->idle_handler = &MHD_tls_connection_handle_idle; | 415 | connection->idle_handler = &MHD_tls_connection_handle_idle; |
416 | } | 416 | } |
417 | |||
418 | /* end of connection_https.c */ | ||