diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-10-14 09:04:16 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-10-14 10:20:01 +1100 |
commit | 3493b62b4b6e2f36f960164c251168b50d9722a3 (patch) | |
tree | d0472a57b109eadf12411a359eb3fece6f04dc21 /source4 | |
parent | e33c23dc5cc2a0fc58f6af1d37f57675cc2c698f (diff) | |
download | samba-3493b62b4b6e2f36f960164c251168b50d9722a3.tar.gz samba-3493b62b4b6e2f36f960164c251168b50d9722a3.tar.bz2 samba-3493b62b4b6e2f36f960164c251168b50d9722a3.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/heimdal/lib/hdb/keytab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/heimdal/lib/hdb/keytab.c b/source4/heimdal/lib/hdb/keytab.c index a557de036d..6cab8a44f0 100644 --- a/source4/heimdal/lib/hdb/keytab.c +++ b/source4/heimdal/lib/hdb/keytab.c @@ -401,12 +401,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; } |