commit fba10f365d4e366204a79f1ba2858969c9e5fb78
parent d728fa1b45f8487e4d191429a78b401fad433be0
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 6 Aug 2010 11:34:25 +0000
fix
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
@@ -1492,9 +1492,12 @@ MHD_start_daemon_va (unsigned int options,
return NULL;
memset (retVal, 0, sizeof (struct MHD_Daemon));
#if HTTPS_SUPPORT
- gnutls_priority_init (&retVal->priority_cache,
- "NORMAL",
- NULL);
+ if (options & MHD_USE_SSL)
+ {
+ gnutls_priority_init (&retVal->priority_cache,
+ "NORMAL",
+ NULL);
+ }
#endif
retVal->socket_fd = -1;
retVal->options = (enum MHD_OPTION)options;