s4:heimdal A real fix for bug 6801
The issue was that we would free the entry after the database, not knowing that the entry was a talloc child of the database. Andrew Bartlett Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
39a751d6fb
commit
6243038c9f
@@ -398,12 +398,12 @@ hdb_end_seq_get(krb5_context context,
|
||||
{
|
||||
struct hdb_cursor *c = cursor->data;
|
||||
|
||||
(c->db->hdb_close)(context, c->db);
|
||||
(c->db->hdb_destroy)(context, c->db);
|
||||
|
||||
if (!c->next)
|
||||
hdb_free_entry(context, &c->hdb_entry);
|
||||
|
||||
(c->db->hdb_close)(context, c->db);
|
||||
(c->db->hdb_destroy)(context, c->db);
|
||||
|
||||
free(c);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user