1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

r1511: fixed a free() that should be ldb_free()

this might explain the tdb corruption that metze found - it caused heap corruption that affected tdb
(This used to be commit 31d55dfb443612a341ff6ade77c6e4477c4fefca)
This commit is contained in:
Andrew Tridgell 2004-07-15 07:16:15 +00:00 committed by Gerald (Jerry) Carter
parent f348037f7b
commit 6f47dec364

View File

@ -470,7 +470,7 @@ int ltdb_modify_internal(struct ldb_context *ldb, const struct ldb_message *msg)
tdb_data = tdb_fetch(ltdb->tdb, tdb_key);
if (!tdb_data.dptr) {
free(tdb_key.dptr);
ldb_free(ldb, tdb_key.dptr);
return -1;
}