]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/init.c
Assume TLS is properly configured if any one of
[openldap] / libraries / libldap / init.c
index 89d5db8a0db7400b8faf71b32b7a12d7be4a712d..613bd93c57152bf35df9241e1ee82a5a69d63a3d 100644 (file)
@@ -110,7 +110,7 @@ static const struct ol_attribute {
        {0, ATTR_NONE,          NULL,           NULL,   0}
 };
 
-#define MAX_LDAP_ATTR_LEN  sizeof("TLS_CACERTDIR")
+#define MAX_LDAP_ATTR_LEN  sizeof("TLS_CIPHER_SUITE")
 #define MAX_LDAP_ENV_PREFIX_LEN 8
 
 static void openldap_ldap_init_w_conf(
@@ -397,6 +397,9 @@ ldap_int_destroy_global_options(void)
 {
        struct ldapoptions *gopts = LDAP_INT_GLOBAL_OPT();
 
+       if ( gopts == NULL )
+               return;
+
        gopts->ldo_valid = LDAP_UNINITIALIZED;
 
        if ( gopts->ldo_defludp ) {