aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection_https.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection_https.c')
-rw-r--r--src/microhttpd/connection_https.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c
index 0f995d67..5a05bf3b 100644
--- a/src/microhttpd/connection_https.c
+++ b/src/microhttpd/connection_https.c
@@ -48,7 +48,6 @@ run_tls_handshake (struct MHD_Connection *connection)
48{ 48{
49 int ret; 49 int ret;
50 50
51 MHD_update_last_activity_ (connection);
52 if (MHD_TLS_CONNECTION_INIT == connection->state) 51 if (MHD_TLS_CONNECTION_INIT == connection->state)
53 { 52 {
54 ret = gnutls_handshake (connection->tls_session); 53 ret = gnutls_handshake (connection->tls_session);
@@ -56,6 +55,7 @@ run_tls_handshake (struct MHD_Connection *connection)
56 { 55 {
57 /* set connection state to enable HTTP processing */ 56 /* set connection state to enable HTTP processing */
58 connection->state = MHD_CONNECTION_INIT; 57 connection->state = MHD_CONNECTION_INIT;
58 MHD_update_last_activity_ (connection);
59 return MHD_NO; 59 return MHD_NO;
60 } 60 }
61 if ( (GNUTLS_E_AGAIN == ret) || 61 if ( (GNUTLS_E_AGAIN == ret) ||