]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/root_dse.c
Add missing semicolon.
[openldap] / servers / slapd / root_dse.c
index 540d218d1363740b68537f526de6306329048859..700b4bd489a3df7d1e38b708453d5c315988fc12 100644 (file)
@@ -32,7 +32,8 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly )
 
        e->e_attrs = NULL;
        e->e_dn = ch_strdup( LDAP_ROOT_DSE );
-       e->e_ndn = dn_normalize_case( ch_strdup( LDAP_ROOT_DSE ));
+       e->e_ndn = ch_strdup( LDAP_ROOT_DSE );
+       (void) dn_normalize_case( e->e_ndn );
        e->e_private = NULL;
 
        for ( i = 0; i < nbackends; i++ ) {
@@ -93,9 +94,14 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly )
                attr_merge( e, "supportedSASLMechanism", vals );
        }
 
+       if ( default_referral != NULL ) {
+               attr_merge( e, "ref", default_referral );
+       }
 
-       send_search_entry( &backends[0], conn, op, e, attrs, attrsonly, 1 );
-       send_ldap_search_result( conn, op, LDAP_SUCCESS, NULL, NULL, 1 );
+       send_search_entry( &backends[0], conn, op,
+               e, attrs, attrsonly, 1, NULL );
+       send_search_result( conn, op, LDAP_SUCCESS,
+               NULL, NULL, NULL, NULL, 1 );
 
        entry_free( e );
 }