summaryrefslogtreecommitdiffstats
path: root/ldap
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-06-30 10:11:24 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-07-07 17:16:37 -0700
commit7d555304796f947e9f327041b5112bd4482f2ca9 (patch)
treeda395140fea8b7c0611242a19f061653f0235354 /ldap
parent9c29bdbfa149529e561a0bcd114cf2b064b6a008 (diff)
downloadds-7d555304796f947e9f327041b5112bd4482f2ca9.tar.gz
ds-7d555304796f947e9f327041b5112bd4482f2ca9.tar.xz
ds-7d555304796f947e9f327041b5112bd4482f2ca9.zip
609255 - fix coverity Defect Type: Memory - illegal accesses issues
https://bugzilla.redhat.com/show_bug.cgi?id=609255 12225 UNINIT Triaged Unassigned Bug Minor Fix Required windows_private_update_dirsync_control() ds/ldap/servers/plugins/replication/windows_private.c Comment: If DIRSYNC control is not found, uninitialized serverCookie is passed to ber_bvfree. We should init serverCookie to NULL.
Diffstat (limited to 'ldap')
-rw-r--r--ldap/servers/plugins/replication/windows_private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/plugins/replication/windows_private.c b/ldap/servers/plugins/replication/windows_private.c
index b5bcabff..d6f8e51e 100644
--- a/ldap/servers/plugins/replication/windows_private.c
+++ b/ldap/servers/plugins/replication/windows_private.c
@@ -585,7 +585,7 @@ void windows_private_update_dirsync_control(const Repl_Agmt *ra,LDAPControl **co
BerElement *ber = NULL;
ber_int_t hasMoreData;
ber_int_t maxAttributeCount;
- BerValue *serverCookie;
+ BerValue *serverCookie = NULL;
#ifdef FOR_DEBUGGING
int return_value = LDAP_SUCCESS;
#endif