<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #2931: BDB support in header cache broken



#2931: BDB support in header cache broken

 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

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2931>