mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
fixed start_tls() error handling
This commit is contained in:
parent
4ea6beae06
commit
98252925e3
1 changed files with 3 additions and 2 deletions
|
|
@ -81,8 +81,9 @@ void LDAPAsynConnection::initialize(const std::string& uri){
|
|||
}
|
||||
|
||||
void LDAPAsynConnection::start_tls(){
|
||||
if( ldap_start_tls_s( cur_session, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
throw LDAPException(this);
|
||||
int ret = ldap_start_tls_s( cur_session, NULL, NULL );
|
||||
if( ret != LDAP_SUCCESS ) {
|
||||
throw LDAPException(ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue