]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/repl.c
Added a conformant sortedResults support which is unable to sort anything.
[openldap] / servers / slapd / repl.c
index 28a2100a57ca14d7298a81d71a0928d575da56d1..529416023c97fc1cd7afa356f144c50c9a4c807a 100644 (file)
@@ -42,6 +42,7 @@
 int
 add_replica_info(
     Backend     *be,
+    const char  *uri, 
     const char  *host 
 )
 {
@@ -59,7 +60,8 @@ add_replica_info(
 
        be->be_replica[ i ] 
                = ch_calloc( sizeof( struct slap_replica_info ), 1 );
-       be->be_replica[ i ]->ri_host = ch_strdup( host );
+       be->be_replica[ i ]->ri_uri = uri;
+       be->be_replica[ i ]->ri_host = host;
        be->be_replica[ i ]->ri_nsuffix = NULL;
        be->be_replica[ i ]->ri_attrs = NULL;
        be->be_replica[ i + 1 ] = NULL;