]> git.sur5r.net Git - openldap/commitdiff
fix uri rewriting
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Aug 2006 01:15:41 +0000 (01:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Aug 2006 01:15:41 +0000 (01:15 +0000)
servers/slapd/bconfig.c

index f2334d7d682c88b488bff0fbd842be37d6cc3eb7..ada0f53d21a1f7c406988b9525ad36cf015f81b6 100644 (file)
@@ -2665,7 +2665,7 @@ config_replica(ConfigArgs *c) {
                        }
                        replicauri = ch_malloc( len );
                        replicahost = lutil_strcopy( replicauri, ludp->lud_scheme );
-                       replicahost = lutil_strcopy( replicauri, "://" );
+                       replicahost = lutil_strcopy( replicahost, "://" );
                        if (ludp->lud_port == LDAP_PORT) {
                                strcpy( replicahost, ludp->lud_host );
                        } else {