Commit 07119f73 authored by Howard Chu's avatar Howard Chu
Browse files

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

parent 0ecc0414
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment