Fix ldap_start_tls_s, don't check for TLS present on a non-existent sockbuf

This commit is contained in:
Howard Chu 2002-01-12 02:25:22 +00:00
parent 0ecc0414a5
commit 07119f7342

View file

@ -1306,7 +1306,7 @@ ldap_start_tls_s ( LDAP *ld,
/* XXYYZ: this initiates operation only on default connection! */
if ( ldap_pvt_tls_inplace( ld->ld_sb ) != 0 ) {
if ( ld->ld_sb != NULL && ldap_pvt_tls_inplace( ld->ld_sb ) != 0 ) {
return LDAP_LOCAL_ERROR;
}