commit: r1800 - in neon/branches/0.29.x: . src

joe at manyfish.co.uk joe at manyfish.co.uk
Wed May 5 04:13:00 EDT 2010


Author: joe
Date: Wed May  5 08:13:00 2010
New Revision: 1800

Modified:
   neon/branches/0.29.x/NEWS
   neon/branches/0.29.x/src/ne_session.c

Log:
Merge r1794 from trunk:

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


Modified: neon/branches/0.29.x/NEWS
==============================================================================
--- neon/branches/0.29.x/NEWS	(original)
+++ neon/branches/0.29.x/NEWS	Wed May  5 08:13:00 2010
@@ -1,5 +1,6 @@
 Changes in release 0.29.4:
 * Fix possible Solaris linker errors if building static library.
+* Fix SNI support (Tobias Gruetzmacher).
 
 Changes in release 0.29.3:
 * Change ne_sock_close() to no longer wait for SSL closure alert:

Modified: neon/branches/0.29.x/src/ne_session.c
==============================================================================
--- neon/branches/0.29.x/src/ne_session.c	(original)
+++ neon/branches/0.29.x/src/ne_session.c	Wed May  5 08:13:00 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