mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
Back out last change
This commit is contained in:
parent
78f6d75586
commit
0e920e9d29
@ -725,13 +725,9 @@ main( int argc, char **argv )
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if ( use_tls ) {
|
||||
rc = ldap_start_tls_s( ld, NULL, NULL );
|
||||
|
||||
if ( rc != LDAP_SUCCESS && use_tls > 1 ) {
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
fprintf( stderr, "Could not start TLS %d: %s\n",
|
||||
rc, ldap_err2string( rc ) );
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
fprintf( stderr, "WARNING: could not start TLS\n" );
|
||||
|
Loading…
Reference in New Issue
Block a user