mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Fix ldap_start_tls_s, don't check for TLS present on a non-existent sockbuf
This commit is contained in:
parent
0ecc0414a5
commit
07119f7342
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue