ldap/servers/plugins/replication/windows_tot_protocol.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cee5f058e10b6379d12b643e03eed81ee22a937d
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Mon Feb 14 12:21:19 2011 -0700
Bug 675113 - ns-slapd core dump in windows_tot_run if oneway sync is used
https://bugzilla.redhat.com/show_bug.cgi?id=675113
Resolves: bug 675113
Bug Description: ns-slapd core dump in windows_tot_run if oneway sync is used
Author: Carsten Grzemba <grzemba(a)contac-dt.de>
Reviewed by: rmeggins
Branch: master
Fix Description: Init pb and dn to NULL to avoid free of uninit memory.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
diff --git a/ldap/servers/plugins/replication/windows_tot_protocol.c
b/ldap/servers/plugins/replication/windows_tot_protocol.c
index 482d49d..24d1675 100644
--- a/ldap/servers/plugins/replication/windows_tot_protocol.c
+++ b/ldap/servers/plugins/replication/windows_tot_protocol.c
@@ -98,8 +98,8 @@ windows_tot_run(Private_Repl_Protocol *prp)
{
int rc;
callback_data cb_data;
- Slapi_PBlock *pb;
- char* dn;
+ Slapi_PBlock *pb = NULL;
+ char* dn = NULL;
RUV *ruv = NULL;
RUV *starting_ruv = NULL;
Replica *replica = NULL;