gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8200 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r8200 - libmicrohttpd/src/daemon
Date: Fri, 6 Feb 2009 09:55:11 -0700 (MST)

Author: grothoff
Date: 2009-02-06 09:55:10 -0700 (Fri, 06 Feb 2009)
New Revision: 8200

Modified:
   libmicrohttpd/src/daemon/connection_https.c
Log:
fix

Modified: libmicrohttpd/src/daemon/connection_https.c
===================================================================
--- libmicrohttpd/src/daemon/connection_https.c 2009-02-06 07:46:07 UTC (rev 
8199)
+++ libmicrohttpd/src/daemon/connection_https.c 2009-02-06 16:55:10 UTC (rev 
8200)
@@ -52,15 +52,17 @@
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]