aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection_https.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-08-24 22:25:08 +0000
committerChristian Grothoff <christian@grothoff.org>2008-08-24 22:25:08 +0000
commit6868a035a94d3839f008422f4d0acd859b03e33c (patch)
treed968c7b4db390ec26fd06f0b9a229633d0b26d74 /src/daemon/connection_https.c
parent72dcf7876e1711e5885903f3658355e395277bc1 (diff)
downloadlibmicrohttpd-6868a035a94d3839f008422f4d0acd859b03e33c.tar.gz
libmicrohttpd-6868a035a94d3839f008422f4d0acd859b03e33c.zip
cleanup
Diffstat (limited to 'src/daemon/connection_https.c')
-rw-r--r--src/daemon/connection_https.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c
index d193fef6..78797aa4 100644
--- a/src/daemon/connection_https.c
+++ b/src/daemon/connection_https.c
@@ -204,7 +204,8 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection)
204 return MHD_YES; 204 return MHD_YES;
205 /* close connection if necessary */ 205 /* close connection if necessary */
206 case MHD_CONNECTION_CLOSED: 206 case MHD_CONNECTION_CLOSED:
207 MHD_tls_connection_close (connection); 207 if (connection->socket_fd != -1)
208 MHD_tls_connection_close (connection);
208 return MHD_NO; 209 return MHD_NO;
209 case MHD_TLS_HANDSHAKE_FAILED: 210 case MHD_TLS_HANDSHAKE_FAILED:
210 MHD_tls_connection_close_err (connection, 211 MHD_tls_connection_close_err (connection,