Commit 4265849b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9176 check for failure setting SNI

parent b8f34888
Pipeline #278 passed with stage
in 39 minutes and 10 seconds
......@@ -531,7 +531,9 @@ tlso_session_connect( LDAP *ld, tls_session *sess, const char *name_in )
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
if ( name_in ) {
SSL_set_tlsext_host_name( s, name_in );
rc = SSL_set_tlsext_host_name( s, name_in );
if ( !rc ) /* can fail to strdup the name */
return -1;
}
#endif
/* Caller expects 0 = success, OpenSSL returns 1 = success */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment