Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment