ldap/servers/slapd/entry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0498723223f4d14d694f59b14c8b46771f0893e9
Author: Nathan Kinder <nkinder(a)redhat.com>
Date: Tue Mar 22 10:54:08 2011 -0700
Bug 688341 - (cov#10709) Fix Coverity code maintainability issues
The third argument to qsort() is incorrect. We should be specifying
the size of "Slapi_Entry *", not "Slapi_Entry **".
diff --git a/ldap/servers/slapd/entry.c b/ldap/servers/slapd/entry.c
index c628ba5..a30bab1 100644
--- a/ldap/servers/slapd/entry.c
+++ b/ldap/servers/slapd/entry.c
@@ -3683,7 +3683,7 @@ slapi_entries_diff(Slapi_Entry **old_entries, Slapi_Entry
**curr_entries,
for (oep = old_entries; oep != NULL && *oep != NULL; oep++)
;
- qsort(old_entries, oep - old_entries, sizeof(Slapi_Entry **),
+ qsort(old_entries, oep - old_entries, sizeof(Slapi_Entry *),
entry_cmp_with_dn);
#ifdef ENTRY_DIFF_DEBUG
Show replies by date