commit: r1794 - neon/trunk/src

joe at manyfish.co.uk joe at manyfish.co.uk
Mon Mar 29 04:49:57 EDT 2010


Author: joe
Date: Mon Mar 29 08:49:56 2010
New Revision: 1794

Modified:
   neon/trunk/src/ne_session.c

Log:
* src/ne_session.c (ne_session_create): Fix to enable SNI by default again.
  (Tobias Gruetzmacher)


Modified: neon/trunk/src/ne_session.c
==============================================================================
--- neon/trunk/src/ne_session.c	(original)
+++ neon/trunk/src/ne_session.c	Mon Mar 29 08:49:56 2010
@@ -183,8 +183,10 @@
             ia = ne_iaddr_parse(hostname, ne_iaddr_ipv6);
 
         if (ia) {
-            sess->flags[NE_SESSFLAG_TLS_SNI] = 1;
             ne_iaddr_free(ia);
+        } 
+        else {
+            sess->flags[NE_SESSFLAG_TLS_SNI] = 1;
         }
         NE_DEBUG(NE_DBG_SSL, "ssl: SNI %s by default.\n",
                  sess->flags[NE_SESSFLAG_TLS_SNI] ?



More information about the neon-commits mailing list