From 07119f73427c2543273cfa0488698b292dc0d86a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 12 Jan 2002 02:25:22 +0000 Subject: [PATCH] Fix ldap_start_tls_s, don't check for TLS present on a non-existent sockbuf --- libraries/libldap/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 31b2a3bc74..4be0f16187 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -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; } -- 2.39.5