X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Frepl.c;h=529416023c97fc1cd7afa356f144c50c9a4c807a;hb=c2a9642850cef813e15f6d8e29799e2b99e52726;hp=9cf8c1cac165cd3c9cff5f647c9fc7707516b8a2;hpb=1d35c8f8eccf2ef16abc70b9382d5a89e1db144c;p=openldap diff --git a/servers/slapd/repl.c b/servers/slapd/repl.c index 9cf8c1cac1..529416023c 100644 --- a/servers/slapd/repl.c +++ b/servers/slapd/repl.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2005 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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;