فهرست منبع

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.
Noriko Hosoi 15 سال پیش
والد
کامیت
7d55530479
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ldap/servers/plugins/replication/windows_private.c

+ 1 - 1
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