浏览代码

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 <[email protected]>
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
Rich Megginson 14 年之前
父节点
当前提交
cee5f058e1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ldap/servers/plugins/replication/windows_tot_protocol.c

+ 2 - 2
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;