diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-03-16 21:06:27 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-03-16 21:06:27 +0300 |
commit | 589983325b496245bb31612ff5aa6b1bb808b5fd (patch) | |
tree | 6671e8a2e665efe78f883fc3462743fa7dd94ad4 | |
parent | 88374e04d2339297e75a34a798611bfb92225c4b (diff) | |
download | libmicrohttpd-589983325b496245bb31612ff5aa6b1bb808b5fd.tar.gz libmicrohttpd-589983325b496245bb31612ff5aa6b1bb808b5fd.zip |
run_tls_handshake(): fixed wrong return value resulting in slower TLS connection setup
-rw-r--r-- | src/microhttpd/connection_https.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c index d71a31c8..c4eb835d 100644 --- a/src/microhttpd/connection_https.c +++ b/src/microhttpd/connection_https.c | |||
@@ -56,7 +56,7 @@ run_tls_handshake (struct MHD_Connection *connection) | |||
56 | { | 56 | { |
57 | /* set connection state to enable HTTP processing */ | 57 | /* set connection state to enable HTTP processing */ |
58 | connection->state = MHD_CONNECTION_INIT; | 58 | connection->state = MHD_CONNECTION_INIT; |
59 | return MHD_YES; | 59 | return MHD_NO; |
60 | } | 60 | } |
61 | if ( (GNUTLS_E_AGAIN == ret) || | 61 | if ( (GNUTLS_E_AGAIN == ret) || |
62 | (GNUTLS_E_INTERRUPTED == ret) ) | 62 | (GNUTLS_E_INTERRUPTED == ret) ) |