summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication/windows_private.c
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-06-30 09:55:53 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-07-07 17:16:32 -0700
commit9c29bdbfa149529e561a0bcd114cf2b064b6a008 (patch)
tree50bc24ccf629093df8ec8e698b2e58eedeac0040 /ldap/servers/plugins/replication/windows_private.c
parentf4f050bd0ac9c6a5f1da41a3c0aaa03a0f7f6c9d (diff)
downloadds-9c29bdbfa149529e561a0bcd114cf2b064b6a008.tar.gz
ds-9c29bdbfa149529e561a0bcd114cf2b064b6a008.tar.xz
ds-9c29bdbfa149529e561a0bcd114cf2b064b6a008.zip
609255 - fix coverity Defect Type: Memory - illegal accesses issues
https://bugzilla.redhat.com/show_bug.cgi?id=609255 12224 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 ber is passed to ber_free. We should init ber to NULL.
Diffstat (limited to 'ldap/servers/plugins/replication/windows_private.c')
-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 8ba8b5c3..b5bcabff 100644
--- a/ldap/servers/plugins/replication/windows_private.c
+++ b/ldap/servers/plugins/replication/windows_private.c
@@ -582,7 +582,7 @@ void windows_private_update_dirsync_control(const Repl_Agmt *ra,LDAPControl **co
int foundDirsyncControl;
int i;
LDAPControl *dirsync = NULL;
- BerElement *ber;
+ BerElement *ber = NULL;
ber_int_t hasMoreData;
ber_int_t maxAttributeCount;
BerValue *serverCookie;