diff options
author | Nathan Kinder <nkinder@redhat.com> | 2010-10-18 09:33:11 -0700 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2010-10-18 09:33:11 -0700 |
commit | 52632d7cfbb74b98fc807a7c5b831f0f2f428c57 (patch) | |
tree | af0fcd66682deb695895737bc0bad229be19d99a | |
parent | f39aab7b4fc39a2c0797424314cfc638c33f482e (diff) | |
download | ds-52632d7cfbb74b98fc807a7c5b831f0f2f428c57.tar.gz ds-52632d7cfbb74b98fc807a7c5b831f0f2f428c57.tar.xz ds-52632d7cfbb74b98fc807a7c5b831f0f2f428c57.zip |
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.
-rw-r--r-- | ldap/servers/plugins/replication/repl5_inc_protocol.c | 2 | ||||
-rw-r--r-- | ldap/servers/plugins/replication/repl5_tot_protocol.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/repl5_inc_protocol.c b/ldap/servers/plugins/replication/repl5_inc_protocol.c index dde91f19..dac03ba3 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 d679ca29..f383f4c4 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); |