From 0098ed12c242cabb34646a4453f2c1b012c919c7 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount <quanah@openldap.org> Date: Wed, 9 Dec 2009 00:15:42 +0000 Subject: [PATCH] ITS#6425 --- CHANGES | 1 + servers/slapd/syncrepl.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 10b45c2f84..996ca5ec55 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ OpenLDAP 2.4.21 Engineering Fixed slapd looping with SSL/TLS connections (ITS#6412) Fixed slapd syncrepl freeing tasks from queue (ITS#6413) Fixed slapd syncrepl parsing of tls defaults (ITS#6419) + Fixed slapd syncrepl uninitialized variables (ITS#6425) Fixed slapd-config Adds with Abstract classes (ITS#6408) Fixed slapo-dynlist behavior with simple filters (ITS#6421) Fixed slapd-ldif access outside database directory (ITS#6414) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 7d18ea23c1..02236b0bac 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -810,7 +810,7 @@ do_syncrep2( ldap_get_entry_controls( si->si_ld, msg, &rctrls ); /* we can't work without the control */ if ( rctrls ) { - LDAPControl **next; + LDAPControl **next = NULL; /* NOTE: make sure we use the right one; * a better approach would be to run thru * the whole list and take care of all */ @@ -998,7 +998,7 @@ do_syncrep2( si->si_ridtxt, err, ldap_err2string( err ) ); } if ( rctrls ) { - LDAPControl **next; + LDAPControl **next = NULL; /* NOTE: make sure we use the right one; * a better approach would be to run thru * the whole list and take care of all */ -- GitLab