commit 9a18334bb6b658466b16348216bce5f132a14bf9
parent 6d1ae16af9edb2bdcc04630d0f6aaba282ac6c44
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 27 Mar 2017 15:27:41 +0300
Fixed non-TLS builds after 7b0d92902c92782844e84e40ab54d58a65531a65
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -5486,8 +5486,10 @@ MHD_start_daemon_va (unsigned int flags,
_("Failed to create inter-thread communication channel: %s\n"),
MHD_itc_last_strerror_ ());
#endif
+#ifdef HTTPS_SUPPORT
if (NULL != daemon->priority_cache)
gnutls_priority_deinit (daemon->priority_cache);
+#endif /* HTTPS_SUPPORT */
free (daemon);
return NULL;
}
@@ -5500,8 +5502,10 @@ MHD_start_daemon_va (unsigned int flags,
_("file descriptor for inter-thread communication channel exceeds maximum value\n"));
#endif
MHD_itc_destroy_chk_ (daemon->itc);
+#ifdef HTTPS_SUPPORT
if (NULL != daemon->priority_cache)
gnutls_priority_deinit (daemon->priority_cache);
+#endif /* HTTPS_SUPPORT */
free (daemon);
return NULL;
}