Normalize SNI hostname handling for SSL and SSL_SESSION
[openssl.git] / ssl / ssl_sess.c
index 628b9f060b0db38a0f7ba5770667e5bf6565310c..d4a4808f197a1d7337e9d4b70b111afca98c5008 100644 (file)
@@ -421,15 +421,6 @@ int ssl_get_new_session(SSL *s, int session)
             return 0;
         }
 
-        if (s->ext.hostname) {
-            ss->ext.hostname = OPENSSL_strdup(s->ext.hostname);
-            if (ss->ext.hostname == NULL) {
-                SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_SSL_GET_NEW_SESSION,
-                         ERR_R_INTERNAL_ERROR);
-                SSL_SESSION_free(ss);
-                return 0;
-            }
-        }
     } else {
         ss->session_id_length = 0;
     }