svn commit: samba r8364 - in
branches/SAMBA_4_0/source/lib/ldb/common: .
tridge at samba.org
tridge at samba.org
Tue Jul 12 09:02:59 GMT 2005
Author: tridge
Date: 2005-07-12 09:02:58 +0000 (Tue, 12 Jul 2005)
New Revision: 8364
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8364
Log:
fixed a valgrind bug spotted by simo
Modified:
branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c 2005-07-12 09:02:27 UTC (rev 8363)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c 2005-07-12 09:02:58 UTC (rev 8364)
@@ -278,7 +278,7 @@
talloc_free(c->name);
talloc_free(c->subclasses);
if (ldb->schema.num_classes-(i+1) > 0) {
- memmove(c, c+1, sizeof(*c) * ldb->schema.num_classes-(i+1));
+ memmove(c, c+1, sizeof(*c) * (ldb->schema.num_classes-(i+1)));
}
ldb->schema.num_classes--;
if (ldb->schema.num_classes == 0) {
More information about the samba-cvs
mailing list