dsdb: Fix a crash in an error return
authorVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2014 13:37:55 +0000 (15:37 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 11 Oct 2014 20:02:04 +0000 (22:02 +0200)
commit8686da231d434bb35333654277a029271e147257
treef524ed3b22476caed6f4514ac83fe879e24fe414
parent6d2c8f54e5e87485783b5173aa9f903a79d25443
dsdb: Fix a crash in an error return

In an error return we have

/* Back it out, if it fails on one */
for (i--; i >= 0; i--) {
ldb_next_del_trans(data->partitions[i]->module);
}

With unsigned int i this will spin and del_trans somewhere far off :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/partition.c