fixed start_tls() error handling

This commit is contained in:
Ralf Haferkamp 2010-02-16 15:17:53 +00:00
parent 4ea6beae06
commit 98252925e3

View file

@ -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);
}
}