diff options
Diffstat (limited to 'src/daemon/connection_https.c')
-rw-r--r-- | src/daemon/connection_https.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c index a52659ff..76b530b4 100644 --- a/src/daemon/connection_https.c +++ b/src/daemon/connection_https.c | |||
@@ -52,15 +52,17 @@ const union MHD_ConnectionInfo * | |||
52 | MHD_get_connection_info (struct MHD_Connection *connection, | 52 | MHD_get_connection_info (struct MHD_Connection *connection, |
53 | enum MHD_ConnectionInfoType infoType, ...) | 53 | enum MHD_ConnectionInfoType infoType, ...) |
54 | { | 54 | { |
55 | if (connection->tls_session == NULL) | ||
56 | return NULL; | ||
57 | switch (infoType) | 55 | switch (infoType) |
58 | { | 56 | { |
59 | #if HTTPS_SUPPORT | 57 | #if HTTPS_SUPPORT |
60 | case MHD_CONNECTION_INFO_CIPHER_ALGO: | 58 | case MHD_CONNECTION_INFO_CIPHER_ALGO: |
59 | if (connection->tls_session == NULL) | ||
60 | return NULL; | ||
61 | return (const union MHD_ConnectionInfo *) &connection-> | 61 | return (const union MHD_ConnectionInfo *) &connection-> |
62 | tls_session->security_parameters.read_bulk_cipher_algorithm; | 62 | tls_session->security_parameters.read_bulk_cipher_algorithm; |
63 | case MHD_CONNECTION_INFO_PROTOCOL: | 63 | case MHD_CONNECTION_INFO_PROTOCOL: |
64 | if (connection->tls_session == NULL) | ||
65 | return NULL; | ||
64 | return (const union MHD_ConnectionInfo *) &connection-> | 66 | return (const union MHD_ConnectionInfo *) &connection-> |
65 | tls_session->security_parameters.version; | 67 | tls_session->security_parameters.version; |
66 | #endif | 68 | #endif |