]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/connection.c
Yet another schema error bug fix
[openldap] / servers / slapd / connection.c
index 037f4c759b948818d4894bc4238dc4df6edb2574..0f4ce390dad14242e498e711b9ea3bd12e02aeb7 100644 (file)
@@ -417,8 +417,6 @@ long connection_init(
                c->c_dn.bv_len = 0;
                c->c_ndn.bv_val = NULL;
                c->c_ndn.bv_len = 0;
-               c->c_cdn.bv_val = NULL;
-               c->c_cdn.bv_len = 0;
                c->c_groups = NULL;
 
                c->c_listener_url.bv_val = NULL;
@@ -461,7 +459,6 @@ long connection_init(
     assert( c->c_authmech.bv_val == NULL );
     assert( c->c_dn.bv_val == NULL );
     assert( c->c_ndn.bv_val == NULL );
-    assert( c->c_cdn.bv_val == NULL );
     assert( c->c_groups == NULL );
     assert( c->c_listener_url.bv_val == NULL );
     assert( c->c_peer_domain.bv_val == NULL );
@@ -598,12 +595,6 @@ void connection2anonymous( Connection *c )
        }
        c->c_ndn.bv_len = 0;
 
-       if(c->c_cdn.bv_val != NULL) {
-               free(c->c_cdn.bv_val);
-               c->c_cdn.bv_val = NULL;
-       }
-       c->c_cdn.bv_len = 0;
-
        c->c_authz_backend = NULL;
        
        {