ldap/servers/plugins/replication/repl5_inc_protocol.c | 2 ++ ldap/servers/plugins/replication/repl5_tot_protocol.c | 2 ++ 2 files changed, 4 insertions(+)
New commits: commit 52632d7cfbb74b98fc807a7c5b831f0f2f428c57 Author: Nathan Kinder nkinder@redhat.com Date: Mon Oct 18 09:33:11 2010 -0700
Bug 643937 - Initialize replication version flags
The flags used to identity the replication protocol versions for 7.1 and 9.0 are not being initialized. This can cause the wrong protocol to be used when replicating to another server. This patch initializes the flags to 0 when the structures are created.
diff --git a/ldap/servers/plugins/replication/repl5_inc_protocol.c b/ldap/servers/plugins/replication/repl5_inc_protocol.c index dde91f1..dac03ba 100644 --- a/ldap/servers/plugins/replication/repl5_inc_protocol.c +++ b/ldap/servers/plugins/replication/repl5_inc_protocol.c @@ -2100,6 +2100,8 @@ Repl_5_Inc_Protocol_new(Repl_Protocol *rp) prp->private = (void *)rip; prp->replica_acquired = PR_FALSE; prp->repl50consumer = 0; + prp->repl71consumer = 0; + prp->repl90consumer = 0; return prp; loser: repl5_inc_delete(&prp); diff --git a/ldap/servers/plugins/replication/repl5_tot_protocol.c b/ldap/servers/plugins/replication/repl5_tot_protocol.c index d679ca2..f383f4c 100644 --- a/ldap/servers/plugins/replication/repl5_tot_protocol.c +++ b/ldap/servers/plugins/replication/repl5_tot_protocol.c @@ -583,6 +583,8 @@ Repl_5_Tot_Protocol_new(Repl_Protocol *rp) prp->private = (void *)rip; prp->replica_acquired = PR_FALSE; prp->repl50consumer = 0; + prp->repl71consumer = 0; + prp->repl90consumer = 0; return prp; loser: repl5_tot_delete(&prp);
389-commits@lists.fedoraproject.org