]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/root_dse.c
Use recursive mutex to avoid deadlocks
[openldap] / servers / slapd / root_dse.c
index c3b30ac63b0a726a20ef6582da3923bd45a0a1ab..356cbc78a68182b7c59ac41ae7c6bc2bcf4ca2fd 100644 (file)
@@ -214,7 +214,6 @@ root_dse_info(
                = slap_schema.si_ad_ref;
 
        e = (Entry *) SLAP_CALLOC( 1, sizeof(Entry) );
-
        if( e == NULL ) {
                Debug( LDAP_DEBUG_ANY,
                        "root_dse_info: SLAP_CALLOC failed", 0, 0, 0 );
@@ -478,7 +477,8 @@ slap_discover_feature(
                return rc;
        }
 
-       rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version );
+       rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
+               (const void *)&version );
        if ( rc != LDAP_SUCCESS ) {
                goto done;
        }