]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Don't delay setting mail event's log prefix
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 20 Jan 2022 10:42:57 +0000 (12:42 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 20 Jan 2022 11:05:22 +0000 (13:05 +0200)
commit6f703021eb18380164ba1c3d306d13d8e32f2783
tree5b8e689982b39f5639d65abb8ccaec3772c63d30
parent6b6465700f1191bff81fb357f7629addd1d72a72
lib-storage: Don't delay setting mail event's log prefix

This caused crashes if the mail event was kept referenced and used for
logging after struct mail was already freed. With the delayed mail event
creation the log prefix shouldn't be much of a performance problem, so just
set the prefix immediately.

Partially reverts bc68e1c368db746557829f67556f3c72943b7956.
src/lib-storage/mail.c