Ticket #2931 (closed defect: fixed)
BDB support in header cache broken
| Reported by: | cludwig | Owned by: | mutt-dev |
|---|---|---|---|
| Priority: | major | Milestone: | 1.6 |
| Component: | header cache | Version: | 1.5.16 |
| Keywords: | BDB | Cc: |
Description
If mutt (changeset f4b2c6eba5fd from http://dev.mutt.org/hg/mutt) is configured to use Berkeley DB as header cache backend, then it dumps core in mutt_hcache_open() - it turns out that the database object h->db was never initialized with db_create(). Therefore, the line
(*h->db->open)(h->db, NULL, path, folder, DB_BTREE, createflags, 0600);
causes the dereferentiation of a NULL pointer.
Attached patch fixes this bug, I think.
Regards
Christoph
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
