diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-12 09:02:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:12 -0500 |
commit | a7c7a9c64c01287efa100ac26863b8b8ab3f3b65 (patch) | |
tree | df42fd18e861a14775f6f40d12735bde2cc9b72b /source4/lib | |
parent | f4ec5d45c313b20632654ceca3cab6e683a98894 (diff) | |
download | samba-a7c7a9c64c01287efa100ac26863b8b8ab3f3b65.tar.gz samba-a7c7a9c64c01287efa100ac26863b8b8ab3f3b65.tar.bz2 samba-a7c7a9c64c01287efa100ac26863b8b8ab3f3b65.zip |
r8364: fixed a valgrind bug spotted by simo
(This used to be commit ef804e8f36f1835d5d61f69565f1195a70f37e74)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/common/ldb_attributes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_attributes.c b/source4/lib/ldb/common/ldb_attributes.c index 3d4f24771f..a915666d78 100644 --- a/source4/lib/ldb/common/ldb_attributes.c +++ b/source4/lib/ldb/common/ldb_attributes.c @@ -278,7 +278,7 @@ void ldb_subclass_remove(struct ldb_context *ldb, const char *class) 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) { |