mirror of
https://github.com/samba-team/samba.git
synced 2025-11-22 16:23:49 +03:00
r8364: fixed a valgrind bug spotted by simo
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c4c93eeec2
commit
ef804e8f36
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user