commit ca3257a98bc4235a7cc456fdd11f496521579d15
parent be8ea79e7b17f217d32663bd7ff9533617ea59bd
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 6 Feb 2009 16:55:10 +0000
fix
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c
@@ -52,15 +52,17 @@ const union MHD_ConnectionInfo *
MHD_get_connection_info (struct MHD_Connection *connection,
enum MHD_ConnectionInfoType infoType, ...)
{
- if (connection->tls_session == NULL)
- return NULL;
switch (infoType)
{
#if HTTPS_SUPPORT
case MHD_CONNECTION_INFO_CIPHER_ALGO:
+ if (connection->tls_session == NULL)
+ return NULL;
return (const union MHD_ConnectionInfo *) &connection->
tls_session->security_parameters.read_bulk_cipher_algorithm;
case MHD_CONNECTION_INFO_PROTOCOL:
+ if (connection->tls_session == NULL)
+ return NULL;
return (const union MHD_ConnectionInfo *) &connection->
tls_session->security_parameters.version;
#endif