aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 599f983a..473bef3a 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -330,7 +330,6 @@ MHD_TLS_init_connection (void *data)
330 330
331 /* initialize connection state */ 331 /* initialize connection state */
332 con->state = MHD_TLS_CONNECTION_INIT; 332 con->state = MHD_TLS_CONNECTION_INIT;
333
334 MHD_gnutls_init (&con->tls_session, GNUTLS_SERVER); 333 MHD_gnutls_init (&con->tls_session, GNUTLS_SERVER);
335 334
336 /* sets cipher priorities */ 335 /* sets cipher priorities */
@@ -588,10 +587,8 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
588 MHD_destroy_response (pos->response); 587 MHD_destroy_response (pos->response);
589 MHD_pool_destroy (pos->pool); 588 MHD_pool_destroy (pos->pool);
590#if HTTPS_SUPPORT 589#if HTTPS_SUPPORT
591 if (pos->tls_session != 0) 590 if (pos->tls_session != NULL)
592 { 591 MHD_gnutls_deinit (pos->tls_session);
593 MHD_gnutls_deinit (pos->tls_session);
594 }
595#endif 592#endif
596 free (pos->addr); 593 free (pos->addr);
597 free (pos); 594 free (pos);