mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
ITS#9176 check for failure setting SNI
This commit is contained in:
parent
b8f34888c3
commit
4265849b0f
1 changed files with 3 additions and 1 deletions
|
|
@ -531,7 +531,9 @@ tlso_session_connect( LDAP *ld, tls_session *sess, const char *name_in )
|
||||||
|
|
||||||
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
||||||
if ( name_in ) {
|
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
|
#endif
|
||||||
/* Caller expects 0 = success, OpenSSL returns 1 = success */
|
/* Caller expects 0 = success, OpenSSL returns 1 = success */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue